Commit 90973fff authored by Ashima Athri's avatar Ashima Athri
Browse files

Add NameQualifier and SPNameQualifier to nameID

The nameID element of the authn response can contain the NameQualifier and
SPNameQualifier attribute optionally.
parent 8064dda4
......@@ -208,6 +208,8 @@ SAML.prototype.generateLogoutRequest = function (req) {
},
'saml:NameID' : {
'@Format': req.user.nameIDFormat,
'@NameQualifier': req.user.nameQualifier,
'@SPNameQualifier': req.user.spNameQualifier,
'#text': req.user.nameID
}
}
......@@ -585,6 +587,8 @@ SAML.prototype.processValidlySignedAssertion = function(xml, inResponseTo, callb
if (nameID[0].$ && nameID[0].$.Format) {
profile.nameIDFormat = nameID[0].$.Format;
profile.nameQualifier = nameID[0].$.NameQualifier;
profile.spNameQualifier = nameID[0].$.SPNameQualifier;
}
}
}
......
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