Commit 8282d77f authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

add fields of the NOMAD Identity provider (done by Harsha)

parent 52574864
......@@ -789,13 +789,35 @@ SAML.prototype.processValidlySignedAssertion = function(xml, inResponseTo, callb
if (!profile.mail && profile['urn:oid:0.9.2342.19200300.100.1.3']) {
// See http://www.incommonfederation.org/attributesummary.html for definition of attribute OIDs
profile.mail = profile['urn:oid:0.9.2342.19200300.100.1.3'];
profile.mail = profile['urn:oid:0.9.2342.19200300.100.1.3'];
profile.sn= profile['urn:oid:2.5.4.4'];
profile.uid = profile['urn:oid:0.9.2342.19200300.100.1.1'];
profile.givenName = profile['urn:oid:2.5.4.42'];
}
if (!profile.email && profile.mail) {
profile.email = profile.mail;
}
if (!profile.uid && profile['urn:oid:0.9.2342.19200300.100.1.1']) {
profile.uid = profile['urn:oid:0.9.2342.19200300.100.1.1'];
}
if (!profile.givenName && profile['urn:oid:2.5.4.42']) {
profile.givenName = profile['urn:oid:2.5.4.42'];
}
if (!profile.sn && profile['urn:oid:2.5.4.4']) {
profile.sn = profile['urn:oid:2.5.4.4'];
}
if (!profile.cn && profile['urn:oid:2.5.4.3']) {
profile.cn = profile['urn:oid:2.5.4.3'];
}
console.log(profile);
profile.getAssertionXml = function() { return xml; };
callback(null, profile, false);
......
Markdown is supported
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