How do I read (via Java?) the SAML response from my SSO provider?

Avatar

Avatar

jayv25585659

Avatar

jayv25585659

jayv25585659

17-10-2019

We have protected some pages via login through our SSO provider. I would like to read the SAML response so we can customize some of the things that's displayed on the page.

How can this be done?

I've searched the net and the results I've found involves the configuration to setup AEM to connect to a SSO provider (this part is already configured and working already).

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

-ash

Employee

Avatar

-ash

Employee

-ash
Employee

20-10-2019

I don‘t think, that you can read the SAML response in AEM directly. But you could configure the AEM SAML Service to map a few SAML properties to AEM user profile properties that you than can read.

If you want to know what‘s in the SAML conversation, I would use special browser plugins (look for SAML tracer or SAML debugger in your browsers extension/plugin store). Theses Plugins filter SAML traffic from other traffic and do the necessary decoding for you.

Answers (1)

Answers (1)

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

18-10-2019

Capture the SAML response in your web browser using the Network tab in the Developer tools.

The SAMLResponse object will be in the POST to the Idp.

Then you base-64 decode the SAML response back to readable XML.