mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
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 <github@erik.michelson.eu>
This commit is contained in:
parent
88cfd6a974
commit
53409825d4
1 changed files with 4 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue