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

[Question] How to parse to attribute in SAMLResponse at django view? #367

Open
pakyeongjo opened this issue Mar 29, 2023 · 1 comment
Open
Labels
Documentation Issues that document features and specific configuration/use cases

Comments

@pakyeongjo
Copy link

pakyeongjo commented Mar 29, 2023

Hello.
First of all, I apologize if the issue is inappropriate. I couldn't find the appropriate format to ask the question.

After the SSO request is successful, I want to get the attributes of the user who authenticated on the screen after the redirect was performed from AssertionConsumerServiceView to 'relay_state'.
In the post method in AssertionConsumerServiceView, 'assertion_info' seems to be the data I'm looking for, but I couldn't find a way to get that information at the time of redirect.

I've been thinking about how to override post_login_hook or customize_session, but I haven't found the right solution. Assertion_info is used only for authentication and does not appear to be managed anymore.

How do I check the SP for the user's credentials provided by the IDP?

https://github.com/IdentityPython/djangosaml2/blob/master/djangosaml2/views.py#L408

@peppelinux
Copy link
Member

Just configure the login redirect url to this view
https://github.com/IdentityPython/djangosaml2/blob/master/djangosaml2/views.py#L617

@peppelinux peppelinux added the Documentation Issues that document features and specific configuration/use cases label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues that document features and specific configuration/use cases
Projects
None yet
Development

No branches or pull requests

2 participants