diff --git a/server/src/uds/auths/SAML/saml.py b/server/src/uds/auths/SAML/saml.py index e64079b2b..26ed21ba3 100644 --- a/server/src/uds/auths/SAML/saml.py +++ b/server/src/uds/auths/SAML/saml.py @@ -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')