Skip to content

Commit e55cd32

Browse files
committed
Fix saml_attr error
1 parent 1cfeb98 commit e55cd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_attribute_value(self, django_field, attributes, attribute_mapping):
113113
logger.debug('attribute_mapping: %s', attribute_mapping)
114114
for saml_attr, django_fields in attribute_mapping.items():
115115
if django_field in django_fields and saml_attr in attributes:
116-
saml_user = attributes.get('saml_attr', [None])[0]
116+
saml_user = attributes.get(saml_attr, [None])[0]
117117
if not saml_user:
118118
logger.error('attributes[saml_attr] attribute '
119119
'value is missing. Probably the user '

0 commit comments

Comments
 (0)