299
stars
169
forks
20
watchers
154
prs
139
issues
88
releases
0
discussions
README
ITfoxtec.Identity.Saml2 ITfoxtec.Identity.Saml2 is an 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. 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. 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. - Authn Request, Authn Response, Logout Request, and Logout Response handling. - Signing and encryption certificates, including Azure Key Vault scenarios. - 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. - Tested interoperability 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. Packages | Package | Purpose | | ------- | ------- | | ITfoxtec.Identity.Saml2 | Core SAML 2.0 protocol implementation. | | ITfoxtec.Identity.Saml2.MvcCore | ASP.NET Core MVC integration helpers. | | ITfoxtec.Identity.Saml2.Mvc | ASP.NET MVC 5 integration helpers for .NET F
Top issues
#131Missing SAML configurable parameters ResponseSkew and MaxAuthenticationAge3 comments · 2023-01-31#292System.MissingMethodException: Method not found1 comments · 2026-10-26#236Implement EntityDescriptor attribute 'cacheDuration' as a 'Duration Period'1 comments · 2024-12-05
Latest release
Version 4.21.1 4.21.1 2026-11-09Updates NuGet dependencies for .NET 8, 9 and 10, including security fixes for XML cryptography. - Updates System.Security.Cryptography.Xml to 8.0.5, 9.0.22 and 10.0.14 for the corresponding .NET targets. - Updates Microsoft.IdentityModel.Tokens.Saml to 8.23.0 for .NET 8, 9 and 10. - Updates HTTP and WCF dependencies for newer .NET targets. - Updates sample application dependencies and test tooling. NuGet package released: https://www.nuget.org/packages/ITfoxtec.Identity.Saml2/ https://www.nuget.org/packages/ITfoxtec.Identity.Saml2.Mvc/ https://www.nuget.org/packages/ITfoxtec.Identi