Skip to content

Authn Context and general SAML2 Request improvement #289

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

Merged
merged 1 commit into from
Jun 4, 2021
Merged

Conversation

peppelinux
Copy link
Member

This PR closes https://github.com/IdentityPython/djangosaml2/pull/288/files

just add this in SAML_CONFIG['service']['sp']

            'requested_authn_context': {
                'authn_context_class_ref': saml2.saml.AUTHN_PASSWORD_PROTECTED,
                'comparison': "exact"
            }

* feat: sso_kwargs now handled with some custom methods ... that can be inherited :)
* feat: authn context support, with or without this IdentityPython/pysaml2#807 (better with!)
* feat: authn context documentation
Comment on lines +170 to +171
def load_sso_kwargs(self, sso_kwargs):
""" Inherit me if you want to put your desidered things in sso_kwargs """
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. I was thinking of making sso_kwargs a class attribute but this is better. I had to make more changes in the Login views to support more configuration attributes but this will simplify it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KISS Is the way 👈

Copy link
Contributor

@pandafy pandafy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍🏼

@peppelinux peppelinux merged commit ca724eb into dev Jun 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants