From e6eb0d544cb404df8359be37ee9a7181c4ae9299 Mon Sep 17 00:00:00 2001 From: sergeyteleshev Date: Wed, 25 Dec 2024 12:27:34 +0100 Subject: [PATCH] CB-5978 hides API token only for config mode (fix) --- .../ServerConfiguration/AuthenticationProviders.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/AuthenticationProviders.tsx b/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/AuthenticationProviders.tsx index 02ff4bd4af..7803a50395 100644 --- a/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/AuthenticationProviders.tsx +++ b/webapp/packages/plugin-authentication-administration/src/Administration/ServerConfiguration/AuthenticationProviders.tsx @@ -41,14 +41,14 @@ export const AuthenticationProviders: PlaceholderComponent { - if (provider.private || provider.authHidden) { + if (provider.private) { return false; } if (configurationWizard) { const disabledByFeature = provider.requiredFeatures.some(feat => !serverConfig.enabledFeatures?.includes(feat)); - if (provider.configurable || disabledByFeature) { + if (provider.configurable || disabledByFeature || provider.authHidden) { return false; } }