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

Logging in with divio results in KeyError 'email' #68

Closed
viktor-yunenko opened this issue Jul 6, 2020 · 4 comments
Closed

Logging in with divio results in KeyError 'email' #68

viktor-yunenko opened this issue Jul 6, 2020 · 4 comments

Comments

@viktor-yunenko
Copy link

viktor-yunenko commented Jul 6, 2020

It looks like user_data didn't contain an email:

It was equal to:

user_data =  {first_name: 'Anastasiia', is_active: True, is_staff: True, is_superuser: True, last_name: 'Kuvshinova'}

Hence email=user_data.pop('email') raises an error. I wonder whether it can be divio sso issue?

That's related to #67

@viktor-yunenko viktor-yunenko self-assigned this Aug 14, 2020
@macolo
Copy link

macolo commented Aug 17, 2020

Here is the link to the code that errors out:

email=user_data.pop('email'),

@macolo
Copy link

macolo commented Aug 17, 2020

Typical error screen:

keyerror_at_aldryn_sso_login_authenticate

@macolo
Copy link

macolo commented Aug 17, 2020

@GaretJax I wasnt able to figure out from where build_user() is executed, it doesnt appear to be part of the project 🤔

image

@viktor-yunenko
Copy link
Author

It's been resolved 👌

@viktor-yunenko viktor-yunenko removed their assignment Aug 26, 2020
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

3 participants