40
Views
7
Comments
Solved
[IdP] How to get SAML response after login with IDP
idp
Web icon
Forge asset by João Barata
Application Type
Traditional Web
Service Studio Version
11.54.60 (Build 63294)

I have integrated with IDP using SAML and now after login, i want to fetch and print the entire SAML response in a screen. How can i do it?

2025-10-18 11-13-53
Ramesh subramanian
Solution

Hi, Fetch SAML attributes/claims is possible. Please check IdPReactDemo.

IdPReactDemo.oml
UserImage.jpg
Amit Agrawal

Thanks Ramesh

One last question, I am able to fetch default claims but whatever custom claims/attributes that I set on IDP those are not appearing with this logic.

2025-10-18 11-13-53
Ramesh subramanian

Hi Amit Agrawal ,

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.

Thanks,

Ramesh

UserImage.jpg
Amit Agrawal

Hi Ramesh,
Thanks for the response.
I see the saml response in logs, but i want to fetch and display it in one of the screen.
How can i do it?

2025-10-18 11-13-53
Ramesh subramanian


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

UserImage.jpg
Amit Agrawal

So you mean, there is no function available by which we can get the SAML response.
But, what if i want to fetch SAML attributes/claims, then is that also not possible ?
I need to show it in one of the screen of Outsystems app

2025-10-18 11-13-53
Ramesh subramanian
Solution

Hi, Fetch SAML attributes/claims is possible. Please check IdPReactDemo.

IdPReactDemo.oml
UserImage.jpg
Amit Agrawal

Thanks Ramesh

One last question, I am able to fetch default claims but whatever custom claims/attributes that I set on IDP those are not appearing with this logic.

2025-10-18 11-13-53
Ramesh subramanian

Hi Amit Agrawal,

please check this link and more information about the authenticated user like User Id,Region he belongs,department,title,role using  custom claims/attributes.

https://www.outsystems.com/forums/discussion/30123/idp-how-to-get-user-profile-details-upon-successfull-authentication/#Post203147

Thanks,

Ramesh

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