Commit 1bdbcade authored by Petar Hristov's avatar Petar Hristov 💬
Browse files

Merge branch 'Hotfix/2103-RepositoryurlstoConsulUpdateMappingGivennameDev' into 'master'

Fix: Updating Shibboleth attribute mapping for givenname

See merge request !120
parents 79ba5d89 84cf5594
......@@ -15,7 +15,8 @@ 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", "Givenname" },
{ "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" },
{ "urn:oid:2.5.4.10", "Organization" },
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment