示例#1
0
        public SimpleSts(SimpleStsConfiguration configuration)
            : base(configuration)
        {
            // Ignore certificate errors as we will use our selfsigned ones and it will take too long to validate
            // the certificate path.
            //SecurityTokenServiceConfiguration.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None
            //SecurityTokenServiceConfiguration.CertificateValidator = new IgnoreCertificateErrorsValidator()

            SecurityTokenServiceConfiguration.DefaultTokenType = configuration.RelyingParty.TokenType;
        }
示例#2
0
        public SimpleSts(SimpleStsConfiguration configuration) 
            : base(configuration)
        {
            // Ignore certificate errors as we will use our selfsigned ones and it will take too long to validate 
            // the certificate path.
            //SecurityTokenServiceConfiguration.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None
            //SecurityTokenServiceConfiguration.CertificateValidator = new IgnoreCertificateErrorsValidator()

            SecurityTokenServiceConfiguration.DefaultTokenType = configuration.RelyingParty.TokenType; 
        }
示例#3
0
 public static SimpleStsConfiguration GetStsConfiguration(this IRelyingParty rp)
 {
     return(SimpleStsConfiguration.ForRelyingParty(rp));
 }