ITfoxtec.Identity.Saml2
4.20.1
dotnet add package ITfoxtec.Identity.Saml2 --version 4.20.1
NuGet\Install-Package ITfoxtec.Identity.Saml2 -Version 4.20.1
<PackageReference Include="ITfoxtec.Identity.Saml2" Version="4.20.1" />
<PackageVersion Include="ITfoxtec.Identity.Saml2" Version="4.20.1" />
<PackageReference Include="ITfoxtec.Identity.Saml2" />
paket add ITfoxtec.Identity.Saml2 --version 4.20.1
#r "nuget: ITfoxtec.Identity.Saml2, 4.20.1"
#:package ITfoxtec.Identity.Saml2@4.20.1
#addin nuget:?package=ITfoxtec.Identity.Saml2&version=4.20.1
#tool nuget:?package=ITfoxtec.Identity.Saml2&version=4.20.1
ITfoxtec.Identity.Saml2
ITfoxtec.Identity.Saml2 is the open-source SAML 2.0 / SAML-P library for .NET applications that need to act as a Service Provider (SP), Relying Party (RP), or Identity Provider (IdP).
The package is maintained by FoxIDs. The ITfoxtec name remains in the package and namespaces for compatibility with existing integrations.
What it covers
- SAML 2.0 login, logout, single logout, and metadata.
- SP-initiated and IdP-initiated sign-on.
- Message signing, signature validation, and encrypted assertions.
- Redirect Binding, POST Binding, Artifact Binding, and SOAP support.
- Signing and encryption certificates, including Azure Key Vault scenarios.
- Authn Request, Authn Response, Logout Request, and Logout Response handling.
- RSA SHA1, SHA256, SHA384, SHA512, and RSA-PSS SHA256 message signing.
- ECDSA SHA256, SHA384, and SHA512 signing and signature validation on supported modern .NET targets.
- Signature algorithm and XML canonicalization validation allowlists for accepting multiple incoming signing profiles.
- Configurable assertion encryption with AES-CBC, AES-GCM, RSA key transport, and XML Encryption 1.1 RSA-OAEP support.
- Interoperability testing with Microsoft Entra ID (Azure AD), AD FS, Azure AD B2C, Danish NemLog-in3 (MitID), Danish Context Handler (Faelleskommunal Adgangsstyring), and other IdPs and RPs.
Supported frameworks
- .NET 10.0
- .NET 9.0
- .NET 8.0
- .NET 7.0
- .NET 6.0
- .NET Standard 2.1
- .NET Framework 4.6.2 and 4.8
Getting started
dotnet add package ITfoxtec.Identity.Saml2
Start with the project page, test samples, and GitHub source. The ASP.NET Core MVC helper package is available as ITfoxtec.Identity.Saml2.MvcCore, and the ASP.NET MVC 5 helper package is available as ITfoxtec.Identity.Saml2.Mvc.
Direct integration or FoxIDs bridge
Use ITfoxtec.Identity.Saml2 when you need to implement SAML 2.0 directly in your .NET or ASP.NET application.
If your application already supports OpenID Connect or WS-Federation, FoxIDs can be the cleaner integration point. FoxIDs handles the SAML 2.0 connection to the external identity provider or relying party, while the application continues to use the protocol it already supports. This can avoid adding another federation protocol implementation to the application.
Consider FoxIDs when you need:
- A SAML 2.0 to OpenID Connect bridge, or SAML 2.0 to WS-Federation bridge.
- SAML 2.0 integration without changing an application that already supports OpenID Connect or WS-Federation.
- Hosted or self-hosted federation infrastructure across SAML 2.0, OpenID Connect, OAuth 2.0, and WS-Federation.
- A place to operate protocol translation, certificates, metadata, and partner-specific federation configuration outside the application code.
- Architecture guidance or implementation support for SAML 2.0 migrations and complex federation setups.
FoxIDs uses ITfoxtec.Identity.Saml2 for SAML 2.0 protocol handling. The library and FoxIDs are complementary: use the package when SAML 2.0 belongs in your application, and use FoxIDs when SAML 2.0 is better handled as an external identity bridge or federation service.
Support
Use GitHub issues for bugs and feature requests. For implementation questions, use Stack Overflow with the itfoxtec-identity-saml2 tag.
Implementation help, architecture guidance, and custom samples are available from FoxIDs by contacting anders@foxids.com.
| 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 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.1
- Microsoft.IdentityModel.Tokens.Saml (>= 8.14.0)
- System.Security.Cryptography.Xml (>= 4.7.1)
- System.ServiceModel.Primitives (>= 10.0.652802)
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.IdentityModel.Tokens.Saml (>= 8.18.0)
- System.Security.Cryptography.Xml (>= 10.0.7)
- System.ServiceModel.Primitives (>= 10.0.652802)
-
net6.0
- Microsoft.Extensions.Http (>= 6.0.1)
- Microsoft.IdentityModel.Tokens.Saml (>= 8.14.0)
- System.Security.Cryptography.Xml (>= 6.0.2)
- System.ServiceModel.Primitives (>= 6.2.0)
-
net7.0
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.IdentityModel.Tokens.Saml (>= 8.14.0)
- System.Security.Cryptography.Pkcs (>= 7.0.2)
- System.Security.Cryptography.Xml (>= 7.0.1)
- System.ServiceModel.Primitives (>= 6.2.0)
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.IdentityModel.Tokens.Saml (>= 8.14.0)
- System.Security.Cryptography.Xml (>= 8.0.3)
- System.ServiceModel.Primitives (>= 8.1.2)
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.8)
- Microsoft.IdentityModel.Tokens.Saml (>= 8.14.0)
- System.Security.Cryptography.Xml (>= 9.0.15)
- System.ServiceModel.Primitives (>= 8.1.2)
NuGet packages (14)
Showing the top 5 NuGet packages that depend on ITfoxtec.Identity.Saml2:
| Package | Downloads |
|---|---|
|
ITfoxtec.Identity.Saml2.MvcCore
ASP.NET Core MVC integration helpers for implementing SAML 2.0 with ITfoxtec.Identity.Saml2. Adds SAML 2.0 service and middleware registration, request conversion, cookie authentication integration, and IActionResult helpers for SAML 2.0 login, logout, metadata, Redirect, POST, Artifact, and SOAP responses. Includes the core library's modern RSA/ECDSA signature validation and configurable assertion encryption support. The README explains when to implement SAML 2.0 directly in ASP.NET Core and when FoxIDs can act as an external SAML 2.0 bridge for applications that already support OpenID Connect or WS-Federation. |
|
|
ITfoxtec.Identity.Saml2.Mvc
ASP.NET MVC 5 integration helpers for implementing SAML 2.0 with ITfoxtec.Identity.Saml2. Adds request conversion and ActionResult helpers for SAML 2.0 login, logout, metadata, Redirect, POST, Artifact, and SOAP responses in .NET Framework MVC applications. Includes the core library's signature validation and configurable assertion encryption support. The README explains when to implement SAML 2.0 directly in ASP.NET MVC and when FoxIDs can act as an external SAML 2.0 bridge for applications that already support OpenID Connect or WS-Federation. |
|
|
Passingwind.AspNetCore.Authentication.Saml2
ASP.NET Core authentication handler for the SAML2 protocol |
|
|
Passingwind.Abp.IdentityClient.AspNetCore
an abp module that provider dynamic identity provider, support oidc, saml2 |
|
|
Soverance.Auth
Auth models, services, SAML SSO, JWT, and BCrypt for Soverance applications |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.20.1 | 13,295 | 6/27/2026 |
| 4.20.0 | 2,664 | 6/24/2026 |
| 4.19.2 | 1,396 | 6/23/2026 |
| 4.19.1 | 929 | 6/22/2026 |
| 4.19.0 | 479 | 6/22/2026 |
| 4.18.2 | 13,145 | 6/12/2026 |
| 4.18.0 | 65,851 | 5/8/2026 |
| 4.17.0 | 513,901 | 11/25/2025 |
| 4.16.2 | 247,787 | 9/30/2025 |
| 4.16.1 | 111,535 | 8/22/2025 |
| 4.15.3 | 2,158,853 | 12/5/2024 |
| 4.14.1 | 70,702 | 11/27/2024 |
| 4.13.3 | 51,578 | 11/20/2024 |
| 4.13.2 | 362,951 | 10/16/2024 |
| 4.13.1 | 21,799 | 10/10/2024 |
| 4.12.7 | 157,160 | 9/17/2024 |
| 4.12.6 | 167,712 | 9/3/2024 |
| 4.12.0-beta1 | 1,656 | 7/2/2024 |
| 4.11.3 | 1,483,857 | 6/17/2024 |
| 4.11.1 | 43,137 | 6/4/2024 |