mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-26 14:28:46 +00:00
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:
co-authored by
Stefan Benz
parent
6699a6f966
commit
255d42da65
@@ -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 {
|
||||
|
||||
+10
-1
@@ -276,6 +276,13 @@ enum SAMLBinding {
|
||||
SAML_BINDING_ARTIFACT = 3;
|
||||
}
|
||||
|
||||
enum SAMLSignatureAlgorithm {
|
||||
SAML_SIGNATURE_UNSPECIFIED = 0;
|
||||
SAML_SIGNATURE_RSA_SHA1 = 1;
|
||||
SAML_SIGNATURE_RSA_SHA256 = 2;
|
||||
SAML_SIGNATURE_RSA_SHA512 = 3;
|
||||
}
|
||||
|
||||
enum SAMLNameIDFormat {
|
||||
SAML_NAME_ID_FORMAT_UNSPECIFIED = 0;
|
||||
SAML_NAME_ID_FORMAT_EMAIL_ADDRESS = 1;
|
||||
@@ -479,9 +486,11 @@ message SAMLConfig {
|
||||
// Optional name of the attribute, which will be used to map the user
|
||||
// in case the nameid-format returned is `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`.
|
||||
optional string transient_mapping_attribute_name = 5;
|
||||
// Boolean weather federated logout is enabled. If enabled, ZITADEL will send a logout request to the identity provider,
|
||||
// Boolean value to indicate whether federated logout is enabled. 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 = 6;
|
||||
// Optional value to indicate the configured Signing Algorithm used to sign SAML requests and responses.
|
||||
optional zitadel.idp.v1.SAMLSignatureAlgorithm signature_algorithm = 7;
|
||||
}
|
||||
|
||||
message AzureADConfig {
|
||||
|
||||
@@ -64,6 +64,13 @@ enum SAMLBinding {
|
||||
SAML_BINDING_ARTIFACT = 3;
|
||||
}
|
||||
|
||||
enum SAMLSignatureAlgorithm {
|
||||
SAML_SIGNATURE_UNSPECIFIED = 0;
|
||||
SAML_SIGNATURE_RSA_SHA1 = 1;
|
||||
SAML_SIGNATURE_RSA_SHA256 = 2;
|
||||
SAML_SIGNATURE_RSA_SHA512 = 3;
|
||||
}
|
||||
|
||||
enum SAMLNameIDFormat {
|
||||
SAML_NAME_ID_FORMAT_UNSPECIFIED = 0;
|
||||
SAML_NAME_ID_FORMAT_EMAIL_ADDRESS = 1;
|
||||
@@ -306,6 +313,9 @@ message SAMLConfig {
|
||||
// Boolean weather federated logout is enabled. 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 = 6;
|
||||
// Specify a Signature Algorithm that should used to sign SAML requests and responses.
|
||||
// Can be set only if `with_signed_request` is set.
|
||||
SAMLSignatureAlgorithm signature_algorithm = 7;
|
||||
}
|
||||
|
||||
message AzureADConfig {
|
||||
|
||||
@@ -13794,6 +13794,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 {
|
||||
@@ -13831,6 +13834,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 {
|
||||
|
||||
Reference in New Issue
Block a user