Skip to content

Commit 7cc91c4

Browse files
committed
chore(auth): drop the unused MICROSOFT_TENANT_ID knob
Hosted Sim serves many Entra tenants, so it must stay on the multi-tenant endpoint — pinning is only meaningful for a self-hoster restricting sign-in to their own directory, and nobody is asking for that yet. The xms_edov fix is independent of the tenant setting, so this removes surface without touching behavior.
1 parent 7b01abd commit 7cc91c4

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

apps/sim/lib/auth/auth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ export const auth = betterAuth({
760760
clientId: env.MICROSOFT_CLIENT_ID,
761761
clientSecret: env.MICROSOFT_CLIENT_SECRET,
762762
scope: ['openid', 'profile', 'email'],
763-
...(env.MICROSOFT_TENANT_ID ? { tenantId: env.MICROSOFT_TENANT_ID } : {}),
764763
/**
765764
* Without this, `/common/` silently reuses whichever Microsoft
766765
* session the browser already holds, so someone signed into a

apps/sim/lib/core/config/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ export const env = createEnv({
440440
DOCUSIGN_CLIENT_SECRET: z.string().optional(), // DocuSign OAuth client secret
441441
MICROSOFT_CLIENT_ID: z.string().optional(), // Microsoft OAuth client ID for Office 365/Teams
442442
MICROSOFT_CLIENT_SECRET: z.string().optional(), // Microsoft OAuth client secret
443-
MICROSOFT_TENANT_ID: z.string().optional(), // Microsoft sign-in tenant: a GUID, 'organizations' (work/school only), or 'common' (default)
444443
HUBSPOT_CLIENT_ID: z.string().optional(), // HubSpot OAuth client ID
445444
HUBSPOT_CLIENT_SECRET: z.string().optional(), // HubSpot OAuth client secret
446445
SALESFORCE_CLIENT_ID: z.string().optional(), // Salesforce OAuth client ID

0 commit comments

Comments
 (0)