Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement SAML in asp.net?

Tags:

saml-2.0

Anyone can you please try to clarify my questions regarding single sign on using SAML.

  • a) Can we get the identity provider SAML response by string rawSamlData = Request["SAMLResponse"]; this code?
  • b) What is token in SAML response?
  • c) How can we receive token values in asp.net C# (vs2005)?
  • d) Can we force the identity provider to send the user value as a token values?

Thanks in advance.

like image 277
Gopinath G Avatar asked Jan 16 '26 21:01

Gopinath G


1 Answers

We wrote a free open-source module that adds SAML to ASP.NET apps, and we specifically targeted .NET 4.0 and lower (where there's no built-in SAML, and no built-in XML SHA256 signature support). https://github.com/jitbit/AspNetSaml

You can still use it in .NET 4.5 and higher to avoid unnecessary dependencies from .NET libs like System.Deployment etc. It's just one short C# file you can drop in your project.

[Disclaimer] I'm one of the contributors!

like image 51
jazzcat Avatar answered Jan 19 '26 18:01

jazzcat