diff --git a/apps/sim/ee/sso/components/sso.tsx b/apps/sim/ee/sso/components/sso.tsx index 1794404cf..22b7e77f0 100644 --- a/apps/sim/ee/sso/components/sso.tsx +++ b/apps/sim/ee/sso/components/sso.tsx @@ -12,54 +12,12 @@ import { cn } from '@/lib/core/utils/cn' import { getBaseUrl } from '@/lib/core/utils/urls' import { getUserRole } from '@/lib/workspaces/organization/utils' import { useConfigureSSO, useSSOProviders } from '@/ee/sso/hooks/sso' +import { SSO_TRUSTED_PROVIDERS } from '@/ee/sso/lib/constants' import { useOrganizations } from '@/hooks/queries/organization' import { useSubscriptionData } from '@/hooks/queries/subscription' const logger = createLogger('SSO') -const TRUSTED_SSO_PROVIDERS = [ - 'okta', - 'okta-saml', - 'okta-prod', - 'okta-dev', - 'okta-staging', - 'okta-test', - 'azure-ad', - 'azure-active-directory', - 'azure-corp', - 'azure-enterprise', - 'adfs', - 'adfs-company', - 'adfs-corp', - 'adfs-enterprise', - 'auth0', - 'auth0-prod', - 'auth0-dev', - 'auth0-staging', - 'onelogin', - 'onelogin-prod', - 'onelogin-corp', - 'jumpcloud', - 'jumpcloud-prod', - 'jumpcloud-corp', - 'ping-identity', - 'ping-federate', - 'pingone', - 'shibboleth', - 'shibboleth-idp', - 'google-workspace', - 'google-sso', - 'saml', - 'saml2', - 'saml-sso', - 'oidc', - 'oidc-sso', - 'openid-connect', - 'custom-sso', - 'enterprise-sso', - 'company-sso', -] - interface SSOProvider { id: string providerId: string @@ -565,7 +523,7 @@ export function SSO() { handleInputChange('providerId', value)} - options={TRUSTED_SSO_PROVIDERS.map((id) => ({ + options={SSO_TRUSTED_PROVIDERS.map((id) => ({ label: id, value: id, }))}