SAML SSO for ASP.NET Documentation
$ dotnet add package ComponentSpace.Saml2.Net.DocumentationComponentSpace.Saml2.Net enables SAML v2.0 identity provider (IdP) and service provider (SP) single sign-on (SSO) in ASP.NET applications.
Supports:
Profiles:
ComponentSpace.Saml2.Net is a commercial product that includes a free 30-day trial period.
Production use requires a commercial license.
Example ASP.NET projects are available that demonstrate the simple to use SAML API and accompanying SAML configuration.
// SP-initiated SSO.
SAMLServiceProvider.InitiateSSO(Response, returnUrl, partnerIdP);
// IdP-initiated SSO.
SAMLIdentityProvider.InitiateSSO(Response, userName, attributes, targetUrl, partnerSP);
// SP or IdP-initiated SSO.
SAMLServiceProvider.ReceiveSSO(
Request,
out isInResponseTo,
out partnerIdP,
out authnContext,
out userName,
out attributes,
out targetUrl);