mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Emit a warning for unmapped SAML paramters
This commit is contained in:
parent
fdc9979595
commit
5f321ecab6
@ -119,6 +119,8 @@ class TowerSAMLIdentityProvider(BaseSAMLIdentityProvider):
|
||||
for social_attr in django_settings.SOCIAL_AUTH_SAML_ATTRS_MAP:
|
||||
map_attr = django_settings.SOCIAL_AUTH_SAML_ATTRS_MAP[social_attr]
|
||||
attrs[social_attr] = unicode(attributes[map_attr][0]) if map_attr in attributes else None
|
||||
if attrs[social_attr] is None:
|
||||
logger.warn("Could not map SAML attribute '%s', update SOCIAL_AUTH_SAML_ATTRS_MAP with the correct value" % social_attr)
|
||||
return attrs
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user