[IdP] How do I capture the SAML response right before getting directed to the callback URL
Question
idp
Web icon
Forge component by Rui Barbosa

How do I capture the SAML response right before getting directed to the callback URL after login?

To illustrate:

  1. User clicks "SSO login" in your own app
  2. You direct user to the SAML app's login page (e.g. Okta's login page) by calling IdP_SSO_URL to generate the URL (of course you pass in the callback URL e.g. "/App1/Entry.aspx")
  3. User successfully logs in to the SAML app (e.g. Okta)
  4. User gets directed to "/App1/Entry.aspx"

I am sure there's a SAML response or a more informative URL right before user gets directed to "/App1/Entry.aspx". I believe this is where you can parse the response/URL for the user's permissions/details/etc. How do I capture the SAML response/informative URL right before getting directed to "/App1/Entry.aspx"?

Thanks!

Hi YS,

The IdP receives the SAML AuthRequest on the /Idp/SSO.aspx page.

You can find the SAML payload stored in the SAML Logs screen of IdP.

Unfortunately, the SAML log tables are not public at the moment, so you won't be able to use its data on other applications.

Hi, 

Maybe this helps.

I am using Auth0 and had the same error and I had a mismatch between: 

IdP Server Issuer/Entity ID in Idp Server and Settings of the IdP component

and

Issuer of the SAML Protocol Configuration Parameters in Auth0.

Now its working fine.

Kind regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.