From 53409825d402665c2ad10220304440191e22c8ad Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Fri, 13 Sep 2024 16:40:09 +0200 Subject: [PATCH] fix(config/auth): error message mappings for manual OIDC attributes Error messages for manual OIDC attributes such as overriding the scope resulted in wrong error messages when misconfigured. Signed-off-by: Erik Michelson --- backend/src/config/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/config/utils.ts b/backend/src/config/utils.ts index 6d1c5a5e3..bf083ffc4 100644 --- a/backend/src/config/utils.ts +++ b/backend/src/config/utils.ts @@ -81,6 +81,10 @@ export function replaceAuthErrorsWithEnvironmentVariables( '.profilePictureField', '_PROFILE_PICTURE_FIELD', ); + newMessage = newMessage.replace('.authorizeUrl', '_AUTHORIZE_URL'); + newMessage = newMessage.replace('.tokenUrl', '_TOKEN_URL'); + newMessage = newMessage.replace('.userinfoUrl', '_USERINFO_URL'); + newMessage = newMessage.replace('.scope', '_SCOPE'); newMessage = newMessage.replace('.tlsCaCerts', '_TLS_CERT_PATHS'); newMessage = newMessage.replace('.issuer', '_ISSUER'); newMessage = newMessage.replace('.theme', '_THEME');