Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 555 Bytes

Readme.md

File metadata and controls

16 lines (14 loc) · 555 Bytes

Azure Active Directory IdentityModel Extensions for .NET

Decryption

Enable decryption of encrypted SAML1.1 and SAML2.0 tokens

services
.AddAuthentication()
.AddWsFederation(options =>
    options.TokenValidationParameters.TokenDecryptionKey = new X509SecurityKey(serviceCertificate);
    options.SecurityTokenHandlers = new Collection<ISecurityTokenValidator>() {
                new Abc.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler(),
                new Abc.IdentityModel.Tokens.Saml.SamlSecurityTokenHandler(),
            }
);