feat(saml): add SignatureMethod config for SAML IDP (#10520)

# Which Problems Are Solved
When a SAML IDP is created, the signing algorithm defaults to
`RSA-SHA1`.
This PR adds the functionality to configure the signing algorithm while
creating or updating a SAML IDP. When nothing is specified, `RSA-SHA1`
is the default.

Available options:
* RSA_SHA1
* RSA_SHA256
* RSA_SHA512


# How the Problems Are Solved

By introducing a new optional config to specify the Signing Algorithm. 

# Additional Changes
N/A

# Additional Context
- Closes #9842 

An existing bug in the UpdateSAMLProvider API will be fixed as a
followup in a different
[PR](https://github.com/zitadel/zitadel/pull/10557).

---------

Co-authored-by: Stefan Benz <[email protected]>
This commit is contained in:
Gayathri Vijayan
2025-08-27 09:07:13 +00:00
committed by GitHub
co-authored by Stefan Benz
parent 6699a6f966
commit 255d42da65
42 changed files with 413 additions and 7 deletions
+6
View File
@@ -7087,6 +7087,9 @@ message AddSAMLProviderRequest {
// Optionally enable federated logout. If enabled, ZITADEL will send a logout request to the identity provider,
// if the user terminates the session in ZITADEL. Be sure to provide a SLO endpoint as part of the metadata.
optional bool federated_logout_enabled = 9;
// Specify a Signature Algorithm that should be used to sign SAML requests and responses.
// Can be used only if the `with_signed_request` option is set to true.
zitadel.idp.v1.SAMLSignatureAlgorithm signature_algorithm = 10;
}
message AddSAMLProviderResponse {
@@ -7124,6 +7127,9 @@ message UpdateSAMLProviderRequest {
// Optionally enable federated logout. If enabled, ZITADEL will send a logout request to the identity provider,
// if the user terminates the session in ZITADEL. Be sure to provide a SLO endpoint as part of the metadata.
optional bool federated_logout_enabled = 10;
// Specify a Signature Algorithm that should be used to sign SAML requests and responses.
// Can be used only if the `with_signed_request` option is set to true.
zitadel.idp.v1.SAMLSignatureAlgorithm signature_algorithm = 11;
}
message UpdateSAMLProviderResponse {