Skip to content
Snippets Groups Projects
Commit 957c2b74 authored by Hanna Führ's avatar Hanna Führ
Browse files

Fix: Updating Shibboleth attribute mapping for givenname (coscine/issues#2103)

parent 9ca078e7
No related branches found
1 merge request!122Fix: Updating Shibboleth attribute mapping for givenname
......@@ -15,6 +15,7 @@ namespace Coscine.Api.STS.Utils
{ "urn:oasis:names:tc:SAML:attribute:pairwise-id", "pairwise-id" },
{ "urn:oid:2.16.840.1.113730.3.1.241", "DisplayName" },
{ "urn:oid:2.5.4.4", "Surname" },
{ "urn:oid:1.3.6.1.4.1.5540.2.1.96", "RWTHGivenname" },
{ "urn:oid:2.5.4.42", "Givenname" },
{ "urn:oid:0.9.2342.19200300.100.1.3", "EmailAddress" },
{ "urn:oid:1.3.6.1.4.1.5923.1.1.1.9", "ScopedAffiliation" },
......@@ -34,6 +35,9 @@ namespace Coscine.Api.STS.Utils
case "urn:oid:1.3.6.1.4.1.5540.2.1.96":
user.Givenname = (string)value;
break;
case "urn:oid:2.5.4.42":
user.Givenname = (string)value;
break;
case "urn:oid:0.9.2342.19200300.100.1.3":
user.EmailAddress = (string)value;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment