Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add initial config for Workos

Lee Yi Jie Joel281984b89a6a
diff --git a/studio/pages/project/[ref]/auth/settings.tsx b/studio/pages/project/[ref]/auth/settings.tsx
index 9d6bfc1712c..faf80f6d2f3 100644
--- a/studio/pages/project/[ref]/auth/settings.tsx
+++ b/studio/pages/project/[ref]/auth/settings.tsx
@@ -435,6 +435,9 @@ const Settings = () => {
'EXTERNAL_SPOTIFY_ENABLED',
'EXTERNAL_SPOTIFY_CLIENT_ID',
'EXTERNAL_SPOTIFY_SECRET',
+ 'EXTERNAL_WORKOS_ENABLED',
+ 'EXTERNAL_WORKOS_CLIENT_ID',
+ 'EXTERNAL_WORKOS_SECRET',
])}
model={{
EXTERNAL_APPLE_ENABLED: model.EXTERNAL_APPLE_ENABLED,
@@ -479,6 +482,9 @@ const Settings = () => {
EXTERNAL_SPOTIFY_ENABLED: model.EXTERNAL_SPOTIFY_ENABLED,
EXTERNAL_SPOTIFY_CLIENT_ID: model.EXTERNAL_SPOTIFY_CLIENT_ID || undefined,
EXTERNAL_SPOTIFY_SECRET: model.EXTERNAL_SPOTIFY_SECRET || undefined,
+ EXTERNAL_WORKOS_ENABLED: model.EXTERNAL_WORKOS_ENABLED,
+ EXTERNAL_WORKOS_CLIENT_ID: model.EXTERNAL_WORKOS_CLIENT_ID || undefined,
+ EXTERNAL_WORKOS_SECRET: model.EXTERNAL_WORKOS_SECRET || undefined,
}}
onChangeModel={(model) => setExternalProvidersModel(model)}
onReset={() => onFormReset()}
@@ -889,6 +895,35 @@ const Settings = () => {
/>
</>
)}
+ <Divider light />
+ <ToggleField
+ name="EXTERNAL_SPOTIFY_ENABLED"
+ addOns={
+ externalProvidersModel.EXTERNAL_WORKOS_ENABLED && (
+ <a
+ className="pl-4 text-scale-900"
+ href="https://workos.com/"
+ target="_blank"
+ >
+ Create new credentials
+ </a>
+ )
+ }
+ />
+ {externalProvidersModel.EXTERNAL_WORKOS_ENABLED && (
+ <>
+ <AutoField
+ name="EXTERNAL_WORKOS_CLIENT_ID"
+ showInlineError
+ errorMessage="Please enter the client id."
+ />
+ <SecretField
+ name="EXTERNAL_WORKOS_SECRET"
+ showInlineError
+ errorMessage="Please enter the secret."
+ />
+ </>
+ )}
</SchemaFormPanel>
</div>