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

KeyError at /saml2_auth/acs/ 'email' #167

Open
animeshgupta720 opened this issue Jul 27, 2021 · 0 comments
Open

KeyError at /saml2_auth/acs/ 'email' #167

animeshgupta720 opened this issue Jul 27, 2021 · 0 comments

Comments

@animeshgupta720
Copy link

Hello, I am getting a KeyError when I run the code, specifically I see the following variable in the code
user_identity = authn_response.get_identity() under the acs function as empty which is causing the KeyError later.

My Django version - 3.1.12
Python - 3.7.7

The value of 'authn_response' is a decoded xml saml response which contains the attributes being passed on from Okta. However, as mentioned above, when I use the user_identity = authn_response.get_identity() part of code, it doesn't return anything causing the KeyError in the next line that attempts to access the empty dict.

Can someone please help me with this issue?

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