ComponentSpace.Saml2
4.9.0
Prefix Reserved
See the version list below for details.
dotnet add package ComponentSpace.Saml2 --version 4.9.0
NuGet\Install-Package ComponentSpace.Saml2 -Version 4.9.0
<PackageReference Include="ComponentSpace.Saml2" Version="4.9.0" />
<PackageVersion Include="ComponentSpace.Saml2" Version="4.9.0" />
<PackageReference Include="ComponentSpace.Saml2" />
paket add ComponentSpace.Saml2 --version 4.9.0
#r "nuget: ComponentSpace.Saml2, 4.9.0"
#:package ComponentSpace.Saml2@4.9.0
#addin nuget:?package=ComponentSpace.Saml2&version=4.9.0
#tool nuget:?package=ComponentSpace.Saml2&version=4.9.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 fully functional evaluation version of a commercial product. The trial period is 30 days.
A product license is available for purchase.
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 | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.Caching.Memory (>= 3.1.32)
- Microsoft.Extensions.Http (>= 3.1.32)
- Microsoft.Extensions.Logging (>= 3.1.32)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 3.1.32)
- Newtonsoft.Json (>= 13.0.3)
- System.Security.Cryptography.Xml (>= 4.7.1)
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 6.0.1)
- Microsoft.Extensions.Http (>= 6.0.0)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Security.Cryptography.Xml (>= 6.0.1)
-
net7.0
- Microsoft.Extensions.Caching.Memory (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Security.Cryptography.Xml (>= 7.0.1)
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.0.0 | 2,907 | 1/2/2026 |
| 5.7.0 | 29,211 | 10/15/2025 |
| 5.6.0 | 33,374 | 8/5/2025 |
| 5.5.0 | 32,261 | 6/26/2025 |
| 5.4.0 | 28,444 | 5/20/2025 |
| 5.3.0 | 40,655 | 1/10/2025 |
| 5.2.0 | 30,446 | 11/28/2024 |
| 5.1.0 | 42,509 | 7/25/2024 |
| 5.0.0 | 48,685 | 2/29/2024 |
| 4.10.0 | 47,600 | 11/8/2023 |
| 4.9.0 | 29,307 | 9/7/2023 |
| 4.8.0 | 60,037 | 5/19/2023 |
| 4.7.0 | 31,197 | 3/15/2023 |
| 4.6.0 | 32,119 | 1/12/2023 |
| 4.5.0 | 33,173 | 11/17/2022 |
| 4.4.0 | 51,207 | 9/7/2022 |
| 4.3.0 | 33,398 | 7/5/2022 |
| 4.2.0 | 33,332 | 4/26/2022 |
| 4.1.0 | 38,835 | 2/9/2022 |
| 4.0.0 | 56,703 | 10/14/2021 |
| 3.7.0 | 34,695 | 8/6/2021 |
| 3.6.0 | 46,136 | 5/28/2021 |
| 3.5.0 | 34,739 | 3/25/2021 |
| 3.4.0 | 67,587 | 1/20/2021 |
| 3.3.0 | 39,061 | 11/19/2020 |
| 3.2.0 | 38,834 | 10/20/2020 |
| 3.1.0 | 33,937 | 9/7/2020 |
| 3.0.0 | 47,993 | 5/7/2020 |
| 2.9.0 | 38,797 | 3/20/2020 |
| 2.8.0 | 30,108 | 2/22/2020 |
| 2.7.0 | 43,884 | 1/8/2020 |
| 2.6.0 | 61,178 | 10/7/2019 |
| 2.5.0 | 44,229 | 6/12/2019 |
| 2.4.0 | 49,731 | 4/2/2019 |
| 2.3.0 | 118,012 | 2/15/2019 |
| 2.2.0 | 109,418 | 12/5/2018 |
| 2.1.0 | 31,371 | 10/17/2018 |
| 2.0.6 | 33,094 | 8/7/2018 |
| 2.0.5 | 31,939 | 5/24/2018 |
| 2.0.4 | 30,037 | 3/2/2018 |
| 2.0.3 | 41,220 | 12/22/2017 |
| 2.0.2 | 42,729 | 11/2/2017 |
| 2.0.1 | 28,242 | 9/24/2017 |
| 2.0.0 | 28,587 | 9/12/2017 |
| 1.0.5 | 28,779 | 8/28/2017 |
| 1.0.4 | 27,365 | 8/21/2017 |
| 1.0.3 | 27,866 | 7/18/2017 |
| 1.0.2 | 27,614 | 6/30/2017 |
| 1.0.1 | 28,018 | 5/24/2017 |
| 1.0.0 | 37,423 | 3/22/2017 |