How do I read (via Java?) the SAML response from my SSO provider? | Community
Skip to main content
jayv25585659
Level 8
October 18, 2019
Solved

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

  • October 18, 2019
  • 2 replies
  • 3040 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ---achim

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.

2 replies

Adobe Employee
October 18, 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.

---achimAdobe EmployeeAccepted solution
Adobe Employee
October 20, 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.