We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978d6c1 commit a155f5bCopy full SHA for a155f5b
djangosaml2/views.py
@@ -278,8 +278,7 @@ def post(self,
278
SAML Authorization Response endpoint
279
"""
280
attribute_mapping = attribute_mapping or get_custom_setting('SAML_ATTRIBUTE_MAPPING', {'uid': ('username', )})
281
- create_unknown_user = create_unknown_user if create_unknown_user is not None else \
282
- get_custom_setting('SAML_CREATE_UNKNOWN_USER', True)
+ create_unknown_user = create_unknown_user or get_custom_setting('SAML_CREATE_UNKNOWN_USER', True)
283
conf = get_config(config_loader_path, request)
284
try:
285
xmlstr = request.POST['SAMLResponse']
0 commit comments