Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in get_id when using external authentication #299

Open
asyd opened this issue Feb 24, 2020 · 1 comment
Open

Issue in get_id when using external authentication #299

asyd opened this issue Feb 24, 2020 · 1 comment

Comments

@asyd
Copy link

asyd commented Feb 24, 2020

Hello folks,

I want to use flask-user with internal authentication but also with flask-oidc.

However, when I proceed to login_user it failed with:

  File "/home/asyd/.cache/pypoetry/virtualenvs/timetracking-oW1qtLzd-py3.7/lib/python3.7/site-packages/flask_user/user_mixin.py", line 26, in get_id
    password_ends_with = '' if user_manager.USER_ENABLE_AUTH0 else self.password[-8:]

And if I enable AUTH0 I have some other issues.

So maybe we can add an extra setting in this test? Or maybe generate a random string if the password is empty?

What do you think?

According your feedback I'll try to submit a PR.

Thanks

asyd added a commit to asyd/Flask-User that referenced this issue Feb 24, 2020
@asyd
Copy link
Author

asyd commented Mar 6, 2020

Any news by chance? I need a fix for that before release a software. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant