Exemplo n.º 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
            };
        }
Exemplo n.º 2
0
 public Saml2PSecurityTokenHandler()
 {
     Serializer = new Saml2PSerializer();
 }
Exemplo n.º 3
0
 public Saml2PSecurityTokenHandler(SPOptions spOptions)
 {
     Serializer = new Saml2PSerializer(spOptions);
 }