The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: drop deprecated linkedin provider from frontend (#20510)
Joel Leea9057f401a79
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsxindex da59b87c124..79b15b87693 100644--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx@@ -162,37 +162,13 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {"><div className="mx-auto my-6 max-w-lg space-y-6">- {provider.title === 'LinkedIn (Deprecated)' && (- <Alert_Shadcn_ variant="warning">- <IconAlertTriangle strokeWidth={2} />- <AlertTitle_Shadcn_>LinkedIn (Deprecated) Provider</AlertTitle_Shadcn_>- <AlertDescription_Shadcn_>- As of 1st August, LinkedIn has updated their OAuth API scopes. Please use- the new LinkedIn provider below. Developers using this provider should move- over to the new provider. Please refer to our{' '}- <a- href="https://supabase.com/docs/guides/auth/social-login/auth-linkedin"- className="underline"- target="_blank"- >- documentation- </a>{' '}- for more details.- </AlertDescription_Shadcn_>- </Alert_Shadcn_>- )}-{Object.keys(provider.properties).map((x: string) => (<FormFieldkey={x}name={x}properties={provider.properties[x]}formValues={values}- // TODO (Joel): Remove after 30th November when we disable the provider- disabled={- ['EXTERNAL_LINKEDIN_CLIENT_ID', 'EXTERNAL_LINKEDIN_SECRET'].includes(x) ||- !canUpdateConfig- }+ disabled={!canUpdateConfig}/>))}diff --git a/apps/studio/pages/api/auth/[ref]/config.ts b/apps/studio/pages/api/auth/[ref]/config.tsindex 7b214e82c1f..7d1726a04c7 100644--- a/apps/studio/pages/api/auth/[ref]/config.ts+++ b/apps/studio/pages/api/auth/[ref]/config.ts@@ -84,9 +84,6 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {EXTERNAL_KEYCLOAK_CLIENT_ID: null,EXTERNAL_KEYCLOAK_SECRET: null,EXTERNAL_KEYCLOAK_URL: null,- EXTERNAL_LINKEDIN_ENABLED: false,- EXTERNAL_LINKEDIN_CLIENT_ID: null,- EXTERNAL_LINKEDIN_SECRET: null,EXTERNAL_NOTION_ENABLED: false,EXTERNAL_NOTION_CLIENT_ID: null,EXTERNAL_NOTION_SECRET: null,diff --git a/apps/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx b/apps/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsxindex 40489576f63..67081ca67ec 100644--- a/apps/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx+++ b/apps/studio/stores/authConfig/schema/AuthProviders/AuthProvidersFormValidation.tsx@@ -1016,46 +1016,6 @@ const EXTERNAL_PROVIDER_KEYCLOAK = {},}-const EXTERNAL_PROVIDER_LINKEDIN = {- $schema: JSON_SCHEMA_VERSION,- type: 'object',- title: 'LinkedIn (Deprecated)',- properties: {- EXTERNAL_LINKEDIN_ENABLED: {- title: 'Linkedin (Deprecated) enabled',- type: 'boolean',- },- // [TODO] Update docs- EXTERNAL_LINKEDIN_CLIENT_ID: {- title: 'API Key',- type: 'string',- },- // [TODO] Update docs- EXTERNAL_LINKEDIN_SECRET: {- title: 'API Secret Key',- type: 'string',- isSecret: true,- },- },- validationSchema: object().shape({- EXTERNAL_LINKEDIN_ENABLED: boolean().required(),- EXTERNAL_LINKEDIN_CLIENT_ID: string().when('EXTERNAL_LINKEDIN_ENABLED', {- is: true,- then: (schema) => schema.required('API Key is required'),- otherwise: (schema) => schema,- }),- EXTERNAL_LINKEDIN_SECRET: string().when('EXTERNAL_LINKEDIN_ENABLED', {- is: true,- then: (schema) => schema.required('API Secret Key is required'),- otherwise: (schema) => schema,- }),- }),- misc: {- iconKey: 'linkedin-icon',- requiresRedirect: true,- },-}-const EXTERNAL_PROVIDER_LINKEDIN_OIDC = {$schema: JSON_SCHEMA_VERSION,type: 'object',@@ -1406,7 +1366,6 @@ export const PROVIDERS_SCHEMAS = [EXTERNAL_PROVIDER_GOOGLE,EXTERNAL_PROVIDER_KAKAO,EXTERNAL_PROVIDER_KEYCLOAK,- EXTERNAL_PROVIDER_LINKEDIN,EXTERNAL_PROVIDER_LINKEDIN_OIDC,EXTERNAL_PROVIDER_NOTION,EXTERNAL_PROVIDER_TWITCH,