{"repo":"jitbit/AspNetSaml","free":true,"listed":false,"github":"https://github.com/jitbit/AspNetSaml","clone":"git clone https://github.com/jitbit/AspNetSaml.git","description":"Very simple SAML 2.0 consumer module for ASP.NET/C#","language":"C#","stars":421,"topics":["saml","asp-net","single-sign-on","asp-net-mvc","asp-net-core","aspnetcore","dotnet","saml-service-provider","saml2","sso"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"AspNetSaml Very short and simple SAML 2.0 \"consumer\" implementation in C#. It's a SAML client library, not a SAML server . As in - allows adding SAML single-sign-on to your ASP.NET app, but not to provide auth services to other apps. In other words, it's a library for \"service-providers\" not for \"identity providers\". Installation Install-Package AspNetSaml Adds a very small .NET Standard 2.0 library (11KB dll) that works with both ASP.NET Core and the \"old\" ASP.NET Framework. Please refer to releases for the change log. Usage How SAML works? (please read this) SAML workflow has 2 steps: 1. User is redirected to the SAML provider (with some magic in the query-string) where he authenticates 2. User is redirected back to your app, where you validate the payload Here's how you do it (this example is for ASP.NET Core MVC): 1. Redirecting the user to the saml provider: 2. User has been redirected back User is sent back to your app - you need to validate the SAML response (\"assertion\") that you recieved via POST. Here's an example of how you do it in ASP.NET Core MVC Bonus: reading more attributes from the provider SAML providers usually send more data with their response: username, first/last names etc. Here's how to get it: Notes about the source code All the functionality sits in one single short file Saml.cs other stuff in this repo are just unit tests, nuget-packaging etc. You can take that file and throw it in your project, it should work just fine. P.S. This library has been ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jitbit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jitbit/AspNetSaml/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}