コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the GenesisSecurityTokenServiceConfiguration class.
 /// </summary>
 /// <param name="piIssuerName">Issuer name.</param>
 /// <param name="piSigningCertificateThumprint">Signing Certificate thumbprint.</param>
 /// <param name="piIssuerCertificateThumbprint">Issuer Certificate thumbprint.</param>
 public STSConfiguration(string piIssuerName, string piSigningCertificateThumprint, string piIssuerCertificateThumbprint)
     : base(piIssuerName, new X509SigningCredentials(CertificateUtil.GetCertificateByThumbprint(
                                                         StoreName.My, StoreLocation.LocalMachine, piSigningCertificateThumprint)))
 {
     Init(piSigningCertificateThumprint);
 }
コード例 #2
0
 /// <summary>
 /// Creates an instance of CustomSecurityTokenService.
 /// </summary>
 /// <param name="configuration">Configuration for this SecurityTokenService.</param>
 public CustomSecurityTokenService(SecurityTokenServiceConfiguration configuration)
     : base(configuration)
 {
     // Setup the certificate our STS is going to use to sign the issued tokens
     configuration.SigningCredentials = new X509SigningCredentials(CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, SigningCertificateName));
 }