Skip to content

Commit 1e93947

Browse files
committed
addressed comments
1 parent c426fd4 commit 1e93947

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

apps/sim/ee/sso/components/sso.tsx

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,12 @@ import { cn } from '@/lib/core/utils/cn'
1212
import { getBaseUrl } from '@/lib/core/utils/urls'
1313
import { getUserRole } from '@/lib/workspaces/organization/utils'
1414
import { useConfigureSSO, useSSOProviders } from '@/ee/sso/hooks/sso'
15+
import { SSO_TRUSTED_PROVIDERS } from '@/ee/sso/lib/constants'
1516
import { useOrganizations } from '@/hooks/queries/organization'
1617
import { useSubscriptionData } from '@/hooks/queries/subscription'
1718

1819
const logger = createLogger('SSO')
1920

20-
const TRUSTED_SSO_PROVIDERS = [
21-
'okta',
22-
'okta-saml',
23-
'okta-prod',
24-
'okta-dev',
25-
'okta-staging',
26-
'okta-test',
27-
'azure-ad',
28-
'azure-active-directory',
29-
'azure-corp',
30-
'azure-enterprise',
31-
'adfs',
32-
'adfs-company',
33-
'adfs-corp',
34-
'adfs-enterprise',
35-
'auth0',
36-
'auth0-prod',
37-
'auth0-dev',
38-
'auth0-staging',
39-
'onelogin',
40-
'onelogin-prod',
41-
'onelogin-corp',
42-
'jumpcloud',
43-
'jumpcloud-prod',
44-
'jumpcloud-corp',
45-
'ping-identity',
46-
'ping-federate',
47-
'pingone',
48-
'shibboleth',
49-
'shibboleth-idp',
50-
'google-workspace',
51-
'google-sso',
52-
'saml',
53-
'saml2',
54-
'saml-sso',
55-
'oidc',
56-
'oidc-sso',
57-
'openid-connect',
58-
'custom-sso',
59-
'enterprise-sso',
60-
'company-sso',
61-
]
62-
6321
interface SSOProvider {
6422
id: string
6523
providerId: string
@@ -565,7 +523,7 @@ export function SSO() {
565523
<Combobox
566524
value={formData.providerId}
567525
onChange={(value: string) => handleInputChange('providerId', value)}
568-
options={TRUSTED_SSO_PROVIDERS.map((id) => ({
526+
options={SSO_TRUSTED_PROVIDERS.map((id) => ({
569527
label: id,
570528
value: id,
571529
}))}

0 commit comments

Comments
 (0)