ComponentSpace.Saml2.Net
8.0.0
Prefix Reserved
dotnet add package ComponentSpace.Saml2.Net --version 8.0.0
NuGet\Install-Package ComponentSpace.Saml2.Net -Version 8.0.0
<PackageReference Include="ComponentSpace.Saml2.Net" Version="8.0.0" />
<PackageVersion Include="ComponentSpace.Saml2.Net" Version="8.0.0" />
<PackageReference Include="ComponentSpace.Saml2.Net" />
paket add ComponentSpace.Saml2.Net --version 8.0.0
#r "nuget: ComponentSpace.Saml2.Net, 8.0.0"
#:package ComponentSpace.Saml2.Net@8.0.0
#addin nuget:?package=ComponentSpace.Saml2.Net&version=8.0.0
#tool nuget:?package=ComponentSpace.Saml2.Net&version=8.0.0
SAML for ASP.NET
ComponentSpace.Saml2.Net enables SAML v2.0 identity provider (IdP) and service provider (SP) single sign-on (SSO) in ASP.NET applications.
Supports:
- Acting as the SAML service provider (SP)
- Acting as the SAML identity provider (IdP)
- Service provider initiated SSO
- Identity provider initiated SSO
- Setting and retrieving SAML attributes
- Logout
- SAML metadata creation and consumption
- ASP.NET Identity integration
Profiles:
- Web browser single sign-on (identity provider and service provider initiated)
- Single logout
- Artifact resolution
- Identity provider discovery
- Authentication, attribute and assertion query
- Name identifier management and mapping
Licensing
ComponentSpace.Saml2.Net is a commercial product that includes a free 30-day trial period.
Production use requires a commercial license.
Examples
Example ASP.NET projects are available that demonstrate the simple to use SAML API and accompanying SAML configuration.
Initiating SSO from the SP
// SP-initiated SSO.
SAMLServiceProvider.InitiateSSO(Response, returnUrl, partnerIdP);
Initiating SSO from the IdP
// IdP-initiated SSO.
SAMLIdentityProvider.InitiateSSO(Response, userName, attributes, targetUrl, partnerSP);
Receiving the SAML Response
// SP or IdP-initiated SSO.
SAMLServiceProvider.ReceiveSSO(
Request,
out isInResponseTo,
out partnerIdP,
out authnContext,
out userName,
out attributes,
out targetUrl);
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
-
.NETFramework 4.6.2
- System.Security.Cryptography.Xml (>= 10.0.1)
-
.NETFramework 4.8
- System.Security.Cryptography.Xml (>= 10.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ComponentSpace.Saml2.Net:
| Package | Downloads |
|---|---|
|
ComponentSpace.Saml2.Net.Extension.AesGcm
Adds support for AES-GCM XML data encryption. Production use requires a commercial license. |
|
|
ComponentSpace.Saml2.Net.Extension.RsaOaep
Adds support for RSA-OAEP XML key encryption. Production use requires a commercial license. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.0 | 7,586 | 1/2/2026 |
| 7.7.0 | 40,320 | 10/15/2025 |
| 7.6.0 | 42,391 | 8/5/2025 |
| 7.5.0 | 41,291 | 6/26/2025 |
| 7.4.0 | 41,110 | 5/20/2025 |
| 7.3.0 | 45,858 | 1/10/2025 |
| 7.2.0 | 41,066 | 11/28/2024 |
| 7.1.0 | 41,205 | 7/25/2024 |
| 7.0.0 | 48,029 | 2/29/2024 |
| 6.5.0 | 81,775 | 11/8/2023 |
| 6.4.0 | 41,328 | 9/7/2023 |
| 6.3.0 | 43,125 | 5/19/2023 |
| 6.2.0 | 44,049 | 3/15/2023 |
| 6.1.0 | 97,133 | 1/12/2023 |
| 6.0.0 | 41,931 | 11/17/2022 |
| 5.4.0 | 48,051 | 9/7/2022 |
| 5.3.0 | 80,414 | 7/5/2022 |
| 5.2.0 | 42,213 | 4/26/2022 |
| 5.1.0 | 44,840 | 2/9/2022 |
| 5.0.0 | 62,965 | 10/14/2021 |
| 4.8.0 | 83,063 | 5/28/2021 |
| 4.7.0 | 105,620 | 1/20/2021 |
| 4.6.0 | 42,077 | 11/19/2020 |
| 4.5.0 | 46,257 | 10/20/2020 |
| 4.4.0 | 42,132 | 9/7/2020 |
| 4.3.0 | 49,959 | 5/7/2020 |
| 4.2.0 | 41,633 | 3/20/2020 |
| 4.1.0 | 41,748 | 2/22/2020 |
| 4.0.0 | 45,379 | 1/8/2020 |
| 3.5.0 | 45,606 | 10/7/2019 |
| 3.4.0 | 49,193 | 6/12/2019 |
| 3.3.0 | 42,726 | 4/2/2019 |
| 3.2.0 | 47,821 | 2/15/2019 |
| 3.1.0 | 51,968 | 12/7/2018 |
| 3.0.0 | 48,645 | 10/17/2018 |