Skip to content

Commit 9dffaba

Browse files
committed
Merge branch 'dev'
2 parents 7ea562f + 454163f commit 9dffaba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

djangosaml2/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ def load_sso_kwargs_authn_context(self, sso_kwargs):
162162
if ac:
163163
sso_kwargs["requested_authn_context"] = RequestedAuthnContext(
164164
authn_context_class_ref=[
165-
AuthnContextClassRef(ac['authn_context_class_ref']),
165+
AuthnContextClassRef(ref) for ref in ac['authn_context_class_ref']
166166
],
167-
comparison = ac.get('comparison', "minimum"),
167+
comparison=ac.get('comparison', "minimum"),
168168
)
169169

170170
def load_sso_kwargs(self, sso_kwargs):

docs/source/contents/setup.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Authn Context
219219
We can define the authentication context in settings.SAML_CONFIG['service']['sp'] as follows::
220220

221221
'requested_authn_context': {
222-
'authn_context_class_ref': saml2.saml.AUTHN_PASSWORD_PROTECTED,
222+
'authn_context_class_ref': [saml2.saml.AUTHN_PASSWORD_PROTECTED],
223223
'comparison': "exact"
224224
}
225225

0 commit comments

Comments
 (0)