ITfoxtec.Identity.Saml2.MvcCore
4.20.1
dotnet add package ITfoxtec.Identity.Saml2.MvcCore --version 4.20.1
NuGet\Install-Package ITfoxtec.Identity.Saml2.MvcCore -Version 4.20.1
<PackageReference Include="ITfoxtec.Identity.Saml2.MvcCore" Version="4.20.1" />
<PackageVersion Include="ITfoxtec.Identity.Saml2.MvcCore" Version="4.20.1" />
<PackageReference Include="ITfoxtec.Identity.Saml2.MvcCore" />
paket add ITfoxtec.Identity.Saml2.MvcCore --version 4.20.1
#r "nuget: ITfoxtec.Identity.Saml2.MvcCore, 4.20.1"
#:package ITfoxtec.Identity.Saml2.MvcCore@4.20.1
#addin nuget:?package=ITfoxtec.Identity.Saml2.MvcCore&version=4.20.1
#tool nuget:?package=ITfoxtec.Identity.Saml2.MvcCore&version=4.20.1
ITfoxtec.Identity.Saml2.MvcCore
ITfoxtec.Identity.Saml2.MvcCore adds ASP.NET Core MVC integration helpers for ITfoxtec.Identity.Saml2. Use it when an ASP.NET Core 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
- ASP.NET Core service registration with
AddSaml2. - ASP.NET Core middleware registration with
UseSaml2. - Request conversion from ASP.NET Core requests to SAML 2.0 requests.
IActionResulthelpers for Redirect, POST, Artifact, SOAP, and metadata responses.- Cookie authentication integration for SAML 2.0 login and logout flows.
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 and ECDSA 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 10.0
- .NET 9.0
- .NET 8.0
- .NET 7.0
- .NET 6.0
- .NET Framework 4.6.2 and 4.8
Getting started
dotnet add package ITfoxtec.Identity.Saml2.MvcCore
Start with the ASP.NET Core sample: TestWebAppCore. It shows configuration binding, AddSaml2, UseSaml2, metadata generation, login, assertion consumer service, single logout, and IdP-initiated sign-on.
More information is available on the project page and in the GitHub source.
Direct integration or FoxIDs bridge
Use ITfoxtec.Identity.Saml2.MvcCore when you need to implement SAML 2.0 directly in your ASP.NET Core 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 | 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 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.AspNetCore.Authentication.Cookies (>= 2.3.0)
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Security.Cryptography.Xml (>= 8.0.3)
-
.NETFramework 4.8
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Microsoft.AspNetCore.Authentication.Cookies (>= 2.3.0)
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.3.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Security.Cryptography.Xml (>= 8.0.3)
-
net10.0
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Newtonsoft.Json (>= 13.0.3)
-
net9.0
- ITfoxtec.Identity.Saml2 (>= 4.20.1)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on ITfoxtec.Identity.Saml2.MvcCore:
| Package | Downloads |
|---|---|
|
Tessa.Web
TESSA library for building ASP.NET Core applications. |
|
|
Aguacongas.IdentityServer.Saml2p.Duende
Add Saml2P controller to your Duende.IdentityServer server. |
|
|
SimpleIdServer.IdServer.Saml.Idp
Support SAML2.0. |
|
|
SimpleIdServer.IdServer.Saml.Sp
Support SAML2.0. |
|
|
RAP-Brand-Common
Package Description |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on ITfoxtec.Identity.Saml2.MvcCore:
| Repository | Stars |
|---|---|
|
simpleidserver/SimpleIdServer
OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
|
|
|
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
|
|
|
Azure-Samples/active-directory-b2c-advanced-policies
Sample for use with Azure AD B2C with Custom Policies.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.20.1 | 101 | 6/27/2026 |
| 4.20.0 | 969 | 6/24/2026 |
| 4.19.2 | 742 | 6/23/2026 |
| 4.19.1 | 544 | 6/22/2026 |
| 4.19.0 | 270 | 6/22/2026 |
| 4.18.2 | 7,836 | 6/12/2026 |
| 4.18.0 | 38,911 | 5/8/2026 |
| 4.17.0 | 379,602 | 11/25/2025 |
| 4.16.2 | 192,588 | 9/30/2025 |
| 4.16.1 | 79,496 | 8/22/2025 |
| 4.15.3 | 1,922,265 | 12/5/2024 |
| 4.14.1 | 67,681 | 11/27/2024 |
| 4.13.3 | 40,891 | 11/20/2024 |
| 4.13.2 | 243,225 | 10/16/2024 |
| 4.13.1 | 18,260 | 10/10/2024 |
| 4.12.7 | 79,717 | 9/17/2024 |
| 4.12.6 | 155,543 | 9/3/2024 |
| 4.12.0-beta1 | 1,224 | 7/2/2024 |
| 4.11.3 | 1,175,669 | 6/17/2024 |
| 4.11.1 | 31,990 | 6/4/2024 |