Пример #1
0
        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
            };
        }
Пример #2
0
 public Saml2PSecurityTokenHandler()
 {
     Serializer = new Saml2PSerializer();
 }
Пример #3
0
 public Saml2PSecurityTokenHandler(SPOptions spOptions)
 {
     Serializer = new Saml2PSerializer(spOptions);
 }