diff --git a/public/app/features/auth-config/AuthProvidersListPage.tsx b/public/app/features/auth-config/AuthProvidersListPage.tsx index 37fdf7c5cfe..b299553d55c 100644 --- a/public/app/features/auth-config/AuthProvidersListPage.tsx +++ b/public/app/features/auth-config/AuthProvidersListPage.tsx @@ -4,7 +4,7 @@ import { connect, ConnectedProps } from 'react-redux'; import { GrafanaEdition } from '@grafana/data/internal'; import { Trans } from '@grafana/i18n'; import { reportInteraction } from '@grafana/runtime'; -import { Grid, TextLink, ToolbarButton } from '@grafana/ui'; +import { Alert, Grid, TextLink, ToolbarButton } from '@grafana/ui'; import { Page } from 'app/core/components/Page/Page'; import { config } from 'app/core/config'; import { StoreState } from 'app/types/store'; @@ -46,6 +46,13 @@ export const AuthConfigPageUnconnected = ({ }, [loadSettings]); const [showDrawer, setShowDrawer] = useState(false); + const [showSCIMBanner, setShowSCIMBanner] = useState(false); + + // Check if SCIM banner should be shown + useEffect(() => { + const isSCIMEnabled = config.featureToggles.enableSCIM || false; + setShowSCIMBanner(isSCIMEnabled); + }, []); const authProviders = getRegisteredAuthProviders(); const availableProviders = authProviders.filter((p) => !providerStatuses[p.id]?.hide); @@ -102,6 +109,14 @@ export const AuthConfigPageUnconnected = ({ } > + {showSCIMBanner && ( + setShowSCIMBanner(false)} style={{ marginBottom: 16 }}> + + SCIM is currently in development and not recommended for production use. Please use with caution and + expect potential changes. + + + )} {!providerList.length ? ( ) : ( diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 88774ba133c..0cc6d14e6dc 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -3359,6 +3359,9 @@ "text-badge-enabled": "Enabled", "text-badge-not-enabled": "Not enabled" }, + "scim-banner": { + "message": "SCIM is currently in development and not recommended for production use. Please use with caution and expect potential changes." + }, "server-discovery-modal": { "label-the-wellknownopenidconfiguration-endpoint-for-your-id-p": "The .well-known/openid-configuration endpoint for your IdP", "title-open-id-connect-discovery-url": "OpenID Connect Discovery URL"