public Saml2PSecurityTokenHandler(SPOptions spOptions)
        {
            if (spOptions == null)
            {
                throw new ArgumentNullException(nameof(spOptions));
            }

            Configuration = new SecurityTokenHandlerConfiguration
            {
                IssuerNameRegistry   = new ReturnRequestedIssuerNameRegistry(),
                AudienceRestriction  = GetAudienceRestriction(spOptions),
                SaveBootstrapContext = spOptions.SystemIdentityModelIdentityConfiguration.SaveBootstrapContext
            };

            Serializer = new Saml2PSerializer()
            {
                IgnoreAuthenticationContext = spOptions.Compatibility.IgnoreAuthenticationContextInResponse
            };
        }
 public Saml2PSecurityTokenHandler()
 {
     Serializer = new Saml2PSerializer();
 }
Exemple #3
0
 public Saml2PSecurityTokenHandler(SPOptions spOptions)
 {
     Serializer = new Saml2PSerializer(spOptions);
 }