public STSConfiguration(string piIssuerName, string piSigningCertificateThumbprint, string piIssuerCertificateThumbprint)
     : base(piIssuerName, new X509SigningCredentials(
                CertificateUtility.GetCertificateByThumbprint(
                    StoreLocation.LocalMachine,
                    StoreName.My, piSigningCertificateThumbprint)))
 {
     Init(piSigningCertificateThumbprint);
 }
 public STSConfiguration()
     : base(WebConfigurationManager.AppSettings["IssuerName"].ToString(),
            new X509SigningCredentials(
                CertificateUtility.GetCertificateByThumbprint(
                    StoreLocation.LocalMachine,
                    StoreName.My,
                    WebConfigurationManager.AppSettings["SigningCertificateThumbprint"].ToString())))
 {
     Init(WebConfigurationManager.AppSettings["IssuerCertificateThumprint"].ToString());
 }
Beispiel #3
0
 public STSService(SecurityTokenServiceConfiguration configuration)
     : base(configuration)
 {
     _signingCredentials = new X509SigningCredentials(
         CertificateUtility.GetCertificateByThumbprint(
             StoreLocation.LocalMachine,
             StoreName.My,
             WebConfigurationManager.AppSettings["SigningCertificateThumbprint"].ToString()));
     if (!string.IsNullOrWhiteSpace(WebConfigurationManager.AppSettings["EncryptingCertificateName"].ToString()))
     {
         _encryptingCredentials = new X509EncryptingCredentials(
             CertificateUtility.GetCertificateByThumbprint(
                 StoreLocation.LocalMachine, StoreName.My,
                 WebConfigurationManager.AppSettings["EncryptingCertificateName"].ToString()));
     }
 }