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

auth.get_last_response_xml() has user data and auth.logout() is logging-out , but auth.process_response() is None and auth.is_authenticated() is False #407

Open
gabrielakuhn opened this issue Apr 24, 2024 · 0 comments

Comments

@gabrielakuhn
Copy link

gabrielakuhn commented Apr 24, 2024

Hello,

I am building an app which is similar to Flask structure (I am not using any framework, but I am using werkzeug) so I am following the Flask sample here

I have my saml_settings working properly (I guess) because I can redirect for my IDP and my IDP is redirecting to my assertionConsumerService endpoint.

But when handle the POST in my assertionConsumerService endpoint, I cannot retrieve the SAML AttributeStatement (the data idp is sending back to me)

In auth = OneLogin_Saml2_Auth(http_fields, self.saml_settings)

my auth.process_response() is None and my auth.is_authenticated() is False

However in my SAML Tracer tool I can see the attributes there in the POST.
and If I do auth.get_last_response_xml() I also got the xml response with all the attributes (name, surname, email of the user).

So If I am getting back data somehow from the IDP why the authentication is False and the process_response() is None?
My auth.logout() is also working fine (logging out the user)

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