Adam Levitt
Adam Levitt

Reputation: 10476

How to get the SAMLResponse in ASP.NET MVC?

I'm using Fiddler to trace my single sign on between my Shibboleth Service Provider and a customer's Identity Provider.

I'm successfully getting redirected to the IdP's login page, and I'm successfully able to login to the Idp's site. It's properly redirecting the browser back to the page I originally tried to access, but I don't see how to get at the SAML (which has the information I need to authorize the user into my web app).

I looped through the HTTP parameters and didn't see anything that had the attribute information of my customer's IdP.

I'm using ASP.NET MVC4. Here's what I see in Fiddler:

SAMLResponse=PHNhbWxwOlJlc3Bvb.....&RelayState=ss:mem:234e27f....

I feel like I'm really close and there's just one small thing I'm missing.

EDIT - I see the SAMLResponse coming back in Fiddler... just not sure how to get at it in ASP.NET.

Upvotes: 0

Views: 1322

Answers (1)

dcaswell
dcaswell

Reputation: 3167

Fiddler has a text wizard to transform the SAML response.

First you highlight the text inside the SAML response. For example: name="SAMLResponse" value="PHNhbXJ0aW9uPjwvc2FtbHA6UmVzcG9uc2U" />

Then you paste it (everything between the double-quotes) into the Text Wizard (found with control-e) with From Base64 as your transformation. That should display the SAML response in human-readable form.

Upvotes: 1

Related Questions