Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-3398 [FIX] Fix SharePoint OAuth multi-tenant auth and duplicate OAuth button (#1912)

Kirtiman Mishra740834d038a2
diff --git a/backend/backend/settings/base.py b/backend/backend/settings/base.py
index 29f4b0c91..2d493a91c 100644
--- a/backend/backend/settings/base.py
+++ b/backend/backend/settings/base.py
@@ -627,7 +627,6 @@ for key in [
"GOOGLE_OAUTH2_SECRET",
"AZUREAD_TENANT_OAUTH2_KEY",
"AZUREAD_TENANT_OAUTH2_SECRET",
- "AZUREAD_TENANT_OAUTH2_TENANT_ID",
]:
exec(f"SOCIAL_AUTH_{key} = os.environ.get('{key}')")
diff --git a/backend/sample.env b/backend/sample.env
index 8b0654240..2a69b753f 100644
--- a/backend/sample.env
+++ b/backend/sample.env
@@ -56,7 +56,6 @@ GOOGLE_OAUTH2_SECRET=
# Microsoft sharepoint oauth
AZUREAD_TENANT_OAUTH2_KEY=
AZUREAD_TENANT_OAUTH2_SECRET=
-AZUREAD_TENANT_OAUTH2_TENANT_ID=
# User session
SESSION_EXPIRATION_TIME_IN_SECOND=7200
diff --git a/frontend/src/components/input-output/configure-ds/ConfigureDs.jsx b/frontend/src/components/input-output/configure-ds/ConfigureDs.jsx
index 7408f1746..636f04e7e 100644
--- a/frontend/src/components/input-output/configure-ds/ConfigureDs.jsx
+++ b/frontend/src/components/input-output/configure-ds/ConfigureDs.jsx
@@ -387,15 +387,6 @@ function ConfigureDs({
</Popover>
</div>
)}
- {!isLoading && oAuthProvider?.length > 0 && (
- <OAuthDs
- oAuthProvider={oAuthProvider}
- setCacheKey={handleSetCacheKey}
- setStatus={handleSetStatus}
- selectedSourceId={selectedSourceId}
- isExistingConnector={isExistingConnector}
- />
- )}
<RjsfFormLayout
schema={spec}
formData={formData}