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; }
public static SimpleStsConfiguration GetStsConfiguration(this IRelyingParty rp) { return(SimpleStsConfiguration.ForRelyingParty(rp)); }