Skip to content

Commit

Permalink
Fixed requested_authn_context config (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Jun 10, 2021
1 parent 0ebb930 commit 454163f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions djangosaml2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ def load_sso_kwargs_authn_context(self, sso_kwargs):
if ac:
sso_kwargs["requested_authn_context"] = RequestedAuthnContext(
authn_context_class_ref=[
AuthnContextClassRef(ac['authn_context_class_ref']),
AuthnContextClassRef(ref) for ref in ac['authn_context_class_ref']
],
comparison = ac.get('comparison', "minimum"),
comparison=ac.get('comparison', "minimum"),
)

def load_sso_kwargs(self, sso_kwargs):
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contents/setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Authn Context
We can define the authentication context in settings.SAML_CONFIG['service']['sp'] as follows::

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

Expand Down

0 comments on commit 454163f

Please sign in to comment.