1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

fixed SAML not reading friendlyName

This commit is contained in:
Adolfo Gómez García 2022-12-23 16:44:49 +01:00
parent d76759bb2c
commit 50bed7268a
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -668,7 +668,10 @@ class SAMLAuthenticator(auths.Authenticator):
# url=auth.redirect_to(req['post_data']['RelayState'])
# )
attributes = auth.get_attributes()
attributes = auth.get_attributes().copy()
# Append attributes by its friendly name
attributes.update(auth.get_friendlyname_attributes())
if not attributes:
raise auths.exceptions.AuthenticatorException(
gettext('No attributes returned from IdP')