Skip to content

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

Open
@pakyeongjo

Description

@pakyeongjo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues that document features and specific configuration/use cases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions