Пример #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 static SimpleStsConfiguration GetStsConfiguration(this IRelyingParty rp)
 {
     return(SimpleStsConfiguration.ForRelyingParty(rp));
 }