From a2442ef6202121da535e76136b8c72b68e03a36d Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Mon, 24 Jul 2023 13:56:18 +0300 Subject: [PATCH] Auth: Don't show LDAP CTA card (#72121) --- public/app/features/auth-config/AuthConfigPage.tsx | 2 +- public/app/types/configAuth.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/auth-config/AuthConfigPage.tsx b/public/app/features/auth-config/AuthConfigPage.tsx index 62b9b4ddfd1..64e16ff6628 100644 --- a/public/app/features/auth-config/AuthConfigPage.tsx +++ b/public/app/features/auth-config/AuthConfigPage.tsx @@ -48,7 +48,7 @@ export const AuthConfigPageUnconnected = ({ providerStatuses, isLoading, loadSet (p) => providerStatuses[p.id]?.configured && !providerStatuses[p.id]?.enabled ); const availableProviders = authProviders.filter( - (p) => !providerStatuses[p.id]?.enabled && !providerStatuses[p.id]?.configured + (p) => !providerStatuses[p.id]?.enabled && !providerStatuses[p.id]?.configured && !providerStatuses[p.id]?.hide ); const firstAvailableProvider = availableProviders?.length ? availableProviders[0] : null; diff --git a/public/app/types/configAuth.ts b/public/app/types/configAuth.ts index 7502d142764..a50ad7f48e7 100644 --- a/public/app/types/configAuth.ts +++ b/public/app/types/configAuth.ts @@ -12,6 +12,7 @@ export interface AuthProviderStatus { enabled: boolean; configured: boolean; configFoundInIniFile?: boolean; + hide?: boolean; } export interface SettingsError {