mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 14:37:32 +00:00
fix(crypto): check for nil client secret (#7729)
When creating an app without secret or other type of authentication method, like JWT, and the authentication type is switched afterwards the app would remain without generated secret. If then client authentication with secret is attempted, for example on the token endpoint, the handler would panic in the crypto.CompareHash function on the nile pointer to the CryptoValue. This fix introduces a nil pointer check in crypt.CompareHash and returns a error. The issue was reported over discord: https://discord.com/channels/927474939156643850/1222971118730875020 Possible fix was suggested here: https://github.com/zitadel/zitadel/pull/6999#discussion_r1553503088 This bug only applies to zitadel versions <=2.49.1.
This commit is contained in:
@@ -312,6 +312,7 @@ Errors:
|
||||
APIAuthMethodNoSecret: O método de autenticação da API escolhido não requer um segredo
|
||||
AuthMethodNoPrivateKeyJWT: O método de autenticação escolhido não requer uma chave
|
||||
ClientSecretInvalid: O segredo do cliente é inválido
|
||||
ClientSecretNotSet: O segredo do cliente não está definido
|
||||
Key:
|
||||
AlreadyExisting: Chave do aplicativo já existente
|
||||
NotFound: Chave do aplicativo não encontrada
|
||||
|
Reference in New Issue
Block a user