ComponentSpace.Saml2
6.1.0
Prefix Reserved
dotnet add package ComponentSpace.Saml2 --version 6.1.0
NuGet\Install-Package ComponentSpace.Saml2 -Version 6.1.0
<PackageReference Include="ComponentSpace.Saml2" Version="6.1.0" />
<PackageVersion Include="ComponentSpace.Saml2" Version="6.1.0" />
<PackageReference Include="ComponentSpace.Saml2" />
paket add ComponentSpace.Saml2 --version 6.1.0
#r "nuget: ComponentSpace.Saml2, 6.1.0"
#:package ComponentSpace.Saml2@6.1.0
#addin nuget:?package=ComponentSpace.Saml2&version=6.1.0
#tool nuget:?package=ComponentSpace.Saml2&version=6.1.0
SAML for ASP.NET Core
ComponentSpace.Saml2 enables SAML v2.0 identity provider (IdP) and service provider (SP) single sign-on (SSO) in ASP.NET Core 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 Core 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 is a commercial product that includes a free 30-day trial period.
Production use requires a commercial license.
Examples
Example ASP.NET Core projects are available that demonstrate the simple to use SAML API and accompanying SAML configuration.
Initiating SSO from the SP
// SP-initiated SSO.
await _samlServiceProvider.InitiateSsoAsync(partnerName, returnUrl);
Initiating SSO from the IdP
// IdP-initiated SSO.
await _samlIdentityProvider.InitiateSsoAsync(partnerName, userName, attributes, relayState);
Receiving the SAML Response
// SP or IdP-initiated SSO.
var ssoResult = await _samlServiceProvider.ReceiveSsoAsync();
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ComponentSpace.Saml2:
| Package | Downloads |
|---|---|
|
ComponentSpace.Saml2.Configuration.Database
Adds support for storing SAML configuration in a database using the entity framework. Production use requires a commercial license. |
|
|
ComponentSpace.Saml2.XmlSecurity.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 |
|---|---|---|
| 6.1.0 | 1,091 | 3/11/2026 |
| 6.0.0 | 11,934 | 1/2/2026 |
| 5.7.0 | 37,604 | 10/15/2025 |
| 5.6.0 | 41,159 | 8/5/2025 |
| 5.5.0 | 38,950 | 6/26/2025 |
| 5.4.0 | 34,878 | 5/20/2025 |
| 5.3.0 | 47,152 | 1/10/2025 |
| 5.2.0 | 36,910 | 11/28/2024 |
| 5.1.0 | 49,245 | 7/25/2024 |
| 5.0.0 | 55,279 | 2/29/2024 |
| 4.10.0 | 54,623 | 11/8/2023 |
| 4.9.0 | 35,610 | 9/7/2023 |
| 4.8.0 | 66,223 | 5/19/2023 |
| 4.7.0 | 37,454 | 3/15/2023 |
| 4.6.0 | 38,607 | 1/12/2023 |
| 4.5.0 | 39,408 | 11/17/2022 |
| 4.4.0 | 57,458 | 9/7/2022 |
| 4.3.0 | 39,566 | 7/5/2022 |
| 4.2.0 | 39,508 | 4/26/2022 |
| 4.1.0 | 45,315 | 2/9/2022 |