Skip to content
Snippets Groups Projects
Commit 4a87dbd0 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

check displayName attribute availability

parent c3340055
No related branches found
No related tags found
No related merge requests found
......@@ -822,6 +822,11 @@ sub check_authentication {
log => "unauthenticated user for action $args{action}",
user => "unauthenticated"
) if !$ENV{HTTP_SHIB_IDENTITY_PROVIDER};
$self->abort(
log => "no displayName attribute for identity provider $ENV{HTTP_SHIB_IDENTITY_PROVIDER}",
user => "no_displayname_attribute"
) if !$ENV{'HTTP_DISPLAYNAME'};
}
1;
......@@ -316,3 +316,7 @@ msgstr "valeur générée dynamiquement par le SP"
#: templates/web/edugain/errors.tt2.html:27 templates/web/renater/errors.tt2.html:27
msgid "you need to authenticate to access this page"
msgstr "vous devez vous authentifier pour accéder à cette page"
#: templates/web/edugain/errors.tt2.html:30
msgid "your identity provider doesn't provide displayName attribute, required for this application"
msgstr "votre fournisseur d'identité ne fournit pas l'attribut displayName, nécessaire pour cette application"
......@@ -26,6 +26,9 @@
[% ELSIF err == 'unauthenticated' %]
[% lh.maketext("you need to authenticate to access this page") %]
[% ELSIF err == 'no_displayname_attribute' %]
[% lh.maketext("your identity provider doesn't provide displayName attribute, required for this application") %]
[% ELSIF (matches = err.match('missing_(\w+)')) %]
[% lh.maketext("missing parameter '[_1]'", matches.0) %]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment