[IdP] Not able to parse assertion values from the SAML Login Response

Forge Component
(41)
Published on 20 Mar (11 days ago) by João Pêgas
41 votes
Published on 20 Mar (11 days ago) by João Pêgas

Hello,


I am using Idp component to integrate login feature with our site using SAML 2.0. Component works well with responses i got from Okta and OneLogin services but when we use our actual identity provider settings the component is unable to parse and fill values of the assertion like first name, email, user id etc.

Attached is the format of login response we got from the identity provider via login request:

'<Conditions NotBefore="2020-03-18T14:56:59.764Z" NotOnOrAfter="2020-03-18T15:56:59.764Z">
<AudienceRestriction>
<Audience>VALUE</Audience>
</AudienceRestriction>
</Conditions>
<AttributeStatement>
<Attribute Name="firstName">
<AttributeValue>Sandeep</AttributeValue>
</Attribute>
<Attribute Name="lastName">
<AttributeValue>Prajapat</AttributeValue>
</Attribute>
<Attribute Name="email">
<AttributeValue>VALUE</AttributeValue>
</Attribute>
<Attribute Name="UID">
<AttributeValue>VALUE</AttributeValue>
</Attribute>
</AttributeStatement>
<AuthnStatement AuthnInstant="2020-03-18T14:53:22.342Z">
<AuthnContext>
<AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</AuthnContextClassRef>
</AuthnContext>
</AuthnStatement>
</Assertion>'


Please suggest some solutions to this issue.


Thanks,

Sandeep Prajapat