The sp.parseLoginResponse method resolves to a parseResult object containing the raw SAML content and an extract object. The extract object contains processed fields where inner attribute keys are camelCased (e.g., NotBefore becomes notBefore).
Key fields in extract include:
response: Metadata about the response (id, issueInstant, destination, inResponseTo).issuer: The IdP issuer URL.nameID: The unique identifier for the user.audience: The intended audience for the assertion.conditions: Time-based constraints (notBefore, notOnOrAfter).sessionIndex: Session details (authnInstant, sessionNotOnOrAfter, sessionIndex).attributes: A map of user attributes (e.g., email, firstName).
{
samlContent: "<samlp:Response ...",
extract: {
response: {
id: "_8e8dc5f69a98cc4c1ff3427e5ce34606fd672f91e6",
issueInstant: "2015-10-26T11:41:43.500Z",
destination: "https://sp.example.org/sso/acs",
inResponseTo: "_4fee3b046395c4e751011e97f8900b5273d56685"
},
issuer: "https://idp.example.org/sso/metadata",
nameID: "user@esaml2.com",
audience: "https://sp.example.org/sso/metadata",
conditions: {
notBefore: "2015-10-26T11:41:43.500Z",
notOnOrAfter: "2015-10-26T11:46:43.500Z"
},
sessionIndex: {
authnInstant: "2015-10-26T11:41:43.500Z",
sessionNotOnOrAfter: "2015-10-26T19:41:43.500Z",
sessionIndex: "_be9967abd904ddcae3c0eb4189adbe3f71e327cf93"
},
attributes: {
email: "user@esaml2.com",
lastName: "Samuel",
firstName: "E"
}
}
}