Skip to content

Commit

Permalink
CB-5978 hides API token only for config mode (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Dec 25, 2024
1 parent 4823785 commit e6eb0d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ export const AuthenticationProviders: PlaceholderComponent<IConfigurationPlaceho
const providerList = providers.data
.filter(isDefined)
.filter(provider => {
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;
}
}
Expand Down

0 comments on commit e6eb0d5

Please sign in to comment.