ITfoxtec.Identity.Saml2.Mvc
4.20.1
dotnet add package ITfoxtec.Identity.Saml2.Mvc --version 4.20.1
NuGet\Install-Package ITfoxtec.Identity.Saml2.Mvc -Version 4.20.1
<PackageReference Include="ITfoxtec.Identity.Saml2.Mvc" Version="4.20.1" />
<PackageVersion Include="ITfoxtec.Identity.Saml2.Mvc" Version="4.20.1" />
<PackageReference Include="ITfoxtec.Identity.Saml2.Mvc" />
paket add ITfoxtec.Identity.Saml2.Mvc --version 4.20.1
#r "nuget: ITfoxtec.Identity.Saml2.Mvc, 4.20.1"
#:package ITfoxtec.Identity.Saml2.Mvc@4.20.1
#addin nuget:?package=ITfoxtec.Identity.Saml2.Mvc&version=4.20.1
#tool nuget:?package=ITfoxtec.Identity.Saml2.Mvc&version=4.20.1
ITfoxtec.Identity.Saml2.Mvc
ITfoxtec.Identity.Saml2.Mvc adds ASP.NET MVC 5 integration helpers for ITfoxtec.Identity.Saml2. Use it when a .NET Framework MVC application needs SAML 2.0 sign-on, logout, metadata, and binding handling without writing the MVC plumbing yourself.
The package is maintained by FoxIDs. The ITfoxtec name remains in the package and namespaces for compatibility with existing integrations.
What it adds
- Request conversion from ASP.NET MVC requests to SAML 2.0 requests.
ActionResulthelpers for Redirect, POST, Artifact, SOAP, and metadata responses.- MVC-friendly integration points for SAML 2.0 login, assertion consumer service, single logout, and metadata endpoints.
The underlying SAML 2.0 implementation supports message signing, signature validation, encrypted assertions, metadata, Redirect Binding, POST Binding, Artifact Binding, Azure Key Vault certificate scenarios, RSA signing, signature algorithm and XML canonicalization validation allowlists, configurable AES-CBC/AES-GCM assertion encryption, RSA key encryption, XML Encryption 1.1 RSA-OAEP, and interoperability with Microsoft Entra ID (Azure AD), AD FS, Azure AD B2C, Danish NemLog-in3 (MitID), Danish Context Handler (Faelleskommunal Adgangsstyring), and other SAML 2.0 solutions.
Supported frameworks
- .NET Framework 4.6.2
- .NET Framework 4.8
Getting started
Install-Package ITfoxtec.Identity.Saml2.Mvc
The package depends on ITfoxtec.Identity.Saml2, which contains the protocol implementation. More information is available on the project page, in the sample applications, and in the GitHub source.
Direct integration or FoxIDs bridge
Use ITfoxtec.Identity.Saml2.Mvc when you need to implement SAML 2.0 directly in your ASP.NET MVC 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 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
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Microsoft.AspNet.Mvc (>= 5.3.0)
- Microsoft.AspNet.Razor (>= 3.3.0)
- Microsoft.AspNet.WebPages (>= 3.3.0)
- Microsoft.Web.Infrastructure (>= 2.0.0)
-
.NETFramework 4.8
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Microsoft.AspNet.Mvc (>= 5.3.0)
- Microsoft.AspNet.Razor (>= 3.3.0)
- Microsoft.AspNet.WebPages (>= 3.3.0)
- Microsoft.Web.Infrastructure (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.20.1 | 553 | 6/27/2026 |
| 4.20.0 | 147 | 6/24/2026 |
| 4.19.2 | 143 | 6/23/2026 |
| 4.19.1 | 119 | 6/22/2026 |
| 4.19.0 | 147 | 6/22/2026 |
| 4.18.2 | 301 | 6/12/2026 |
| 4.18.0 | 1,256 | 5/8/2026 |
| 4.17.0 | 11,914 | 11/25/2025 |
| 4.16.2 | 5,037 | 9/30/2025 |
| 4.16.1 | 4,318 | 8/22/2025 |
| 4.15.3 | 17,498 | 12/5/2024 |
| 4.14.1 | 7,545 | 11/27/2024 |
| 4.13.3 | 6,256 | 11/20/2024 |
| 4.13.2 | 3,871 | 10/16/2024 |
| 4.13.1 | 3,668 | 10/10/2024 |
| 4.12.7 | 75,084 | 9/17/2024 |
| 4.12.6 | 3,649 | 9/3/2024 |
| 4.12.0-beta1 | 232 | 7/2/2024 |
| 4.11.3 | 18,177 | 6/17/2024 |
| 4.11.1 | 3,643 | 6/4/2024 |