ComponentSpace.Saml2 5.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package ComponentSpace.Saml2 --version 5.2.0
                    
NuGet\Install-Package ComponentSpace.Saml2 -Version 5.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ComponentSpace.Saml2" Version="5.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ComponentSpace.Saml2" Version="5.2.0" />
                    
Directory.Packages.props
<PackageReference Include="ComponentSpace.Saml2" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ComponentSpace.Saml2 --version 5.2.0
                    
#r "nuget: ComponentSpace.Saml2, 5.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ComponentSpace.Saml2@5.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ComponentSpace.Saml2&version=5.2.0
                    
Install as a Cake Addin
#tool nuget:?package=ComponentSpace.Saml2&version=5.2.0
                    
Install as a Cake Tool

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(); 
Product 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 was computed.  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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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. This is a fully functional evaluation version of a commercial product. The trial period is 30 days.

ComponentSpace.Saml2.XmlSecurity.RsaOaep

Adds support for RSA-OAEP XML key encryption. This is a fully functional evaluation version of a commercial product. The trial period is 30 days.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.6.0 1,911 8/5/2025
5.5.0 3,534 6/26/2025
5.4.0 2,575 5/20/2025
5.3.0 14,248 1/10/2025
5.2.0 4,715 11/28/2024
5.1.0 15,234 7/25/2024
5.0.0 21,315 2/29/2024
4.10.0 21,200 11/8/2023
4.9.0 4,223 9/7/2023
4.8.0 35,068 5/19/2023
4.7.0 6,064 3/15/2023
4.6.0 6,675 1/12/2023
4.5.0 8,327 11/17/2022
4.4.0 25,840 9/7/2022
4.3.0 8,580 7/5/2022
4.2.0 8,497 4/26/2022
4.1.0 12,713 2/9/2022
4.0.0 31,140 10/14/2021
3.7.0 7,755 8/6/2021
3.6.0 21,205 5/28/2021
3.5.0 9,689 3/25/2021
3.4.0 40,282 1/20/2021
3.3.0 14,215 11/19/2020
3.2.0 13,988 10/20/2020
3.1.0 8,932 9/7/2020
3.0.0 23,138 5/7/2020
2.9.0 13,684 3/20/2020
2.8.0 5,276 2/22/2020
2.7.0 18,925 1/8/2020
2.6.0 35,600 10/7/2019
2.5.0 19,080 6/12/2019
2.4.0 24,835 4/2/2019
2.3.0 89,939 2/15/2019
2.2.0 83,162 12/5/2018
2.1.0 6,364 10/17/2018
2.0.6 7,874 8/7/2018
2.0.5 6,857 5/24/2018
2.0.4 4,964 3/2/2018
2.0.3 15,913 12/22/2017
2.0.2 17,681 11/2/2017
2.0.1 3,232 9/24/2017
2.0.0 3,559 9/12/2017
1.0.5 3,718 8/28/2017
1.0.4 2,340 8/21/2017
1.0.3 2,827 7/18/2017
1.0.2 2,541 6/30/2017
1.0.1 2,969 5/24/2017
1.0.0 11,908 3/22/2017