We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16be0ef commit 11bbe5aCopy full SHA for 11bbe5a
test/TestWebAppCore/Startup.cs
@@ -33,6 +33,8 @@ public void ConfigureServices(IServiceCollection services)
33
{
34
//saml2Configuration.SignAuthnRequest = true;
35
saml2Configuration.SigningCertificate = CertificateUtil.Load(AppEnvironment.MapToPhysicalFilePath(Configuration["Saml2:SigningCertificateFile"]), Configuration["Saml2:SigningCertificatePassword"], X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet);
36
+ //Alternatively load the certificate by thumbprint from the machines Certificate Store.
37
+ //saml2Configuration.SigningCertificate = CertificateUtil.Load(StoreName.My, StoreLocation.LocalMachine, X509FindType.FindByThumbprint, Configuration["Saml2:SigningCertificateThumbprint"]);
38
39
//saml2Configuration.SignatureValidationCertificates.Add(CertificateUtil.Load(AppEnvironment.MapToPhysicalFilePath(Configuration["Saml2:SignatureValidationCertificateFile"])));
40
saml2Configuration.AllowedAudienceUris.Add(saml2Configuration.Issuer);
0 commit comments