Skip to content

Commit fde551c

Browse files
committed
Set SignAuthnRequest by metadata WantAuthnRequestsSigned.
1 parent cf429d3 commit fde551c

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

test/TestIdPCore/wwwroot/css/site.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/TestIdPCore/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/TestWebApp/App_Start/IdentityConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public static void RegisterIdentity()
4242
Saml2Configuration.SingleSignOnDestination = entityDescriptor.IdPSsoDescriptor.SingleSignOnServices.First().Location;
4343
Saml2Configuration.SingleLogoutDestination = entityDescriptor.IdPSsoDescriptor.SingleLogoutServices.First().Location;
4444
Saml2Configuration.SignatureValidationCertificates.AddRange(entityDescriptor.IdPSsoDescriptor.SigningCertificates);
45+
if(entityDescriptor.IdPSsoDescriptor.WantAuthnRequestsSigned.HasValue)
46+
{
47+
Saml2Configuration.SignAuthnRequest = entityDescriptor.IdPSsoDescriptor.WantAuthnRequestsSigned.Value;
48+
}
4549
}
4650
else
4751
{

test/TestWebAppCore/Startup.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public void ConfigureServices(IServiceCollection services)
4444
saml2Configuration.SingleSignOnDestination = entityDescriptor.IdPSsoDescriptor.SingleSignOnServices.First().Location;
4545
saml2Configuration.SingleLogoutDestination = entityDescriptor.IdPSsoDescriptor.SingleLogoutServices.First().Location;
4646
saml2Configuration.SignatureValidationCertificates.AddRange(entityDescriptor.IdPSsoDescriptor.SigningCertificates);
47+
if (entityDescriptor.IdPSsoDescriptor.WantAuthnRequestsSigned.HasValue)
48+
{
49+
saml2Configuration.SignAuthnRequest = entityDescriptor.IdPSsoDescriptor.WantAuthnRequestsSigned.Value;
50+
}
4751
}
4852
else
4953
{

test/TestWebAppCoreAzureKeyVault/wwwroot/css/site.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/TestWebAppCoreAzureKeyVault/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)