0

How can i parse the values i got from SAML response? I want to get the AttributeValue of a specific AttributeName.

Something like this.

<saml:Attribute AttributeName="FirstName" AttributeNamespace="http://schemas.xmlsoap.org/claims">
<saml:AttributeValue>MY FirstName</saml:AttributeValue>
</saml:Attribute>

Please help me.

Thanks in Advance!

shibapoo
  • 1,909
  • 3
  • 16
  • 22

1 Answers1

1

Most of the java applications are using opensaml library to parse the SAML request and response. Once you unmarshall it using opensaml, you can travels to attribute statement and extract the value. Also there are some SO question that may be helpful for you.

Community
  • 1
  • 1
Asela
  • 5,781
  • 1
  • 15
  • 23