Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

more fixes

Steven Teyb9a124d3627a
diff --git a/content/help/azure-saml.mdx b/content/help/azure-saml.mdx
index 63fa95f0d9..c54d55b255 100644
--- a/content/help/azure-saml.mdx
+++ b/content/help/azure-saml.mdx
@@ -1,6 +1,6 @@
---
title: Configuring SAML SSO with Azure Active Directory
-updatedAt: 2023-08-15
+updatedAt: 2023-08-17
summary: For Dub Enterprise users, you can securely manage your team's access to Dub using Azure AD SAML SSO.
author: steventey
categories:
diff --git a/content/help/azure-scim.mdx b/content/help/azure-scim.mdx
index a7676e9fba..91fecdba17 100644
--- a/content/help/azure-scim.mdx
+++ b/content/help/azure-scim.mdx
@@ -1,6 +1,6 @@
---
title: Configuring SCIM Directory Sync with Azure AD
-updatedAt: 2023-08-15
+updatedAt: 2023-08-17
summary: For Dub Enterprise users, you can automatically provision and deprovision users from Azure AD to Dub using SCIM Directory Sync.
author: steventey
categories:
diff --git a/content/help/okta-saml.mdx b/content/help/okta-saml.mdx
index 68bab3d694..f2906ee8d8 100644
--- a/content/help/okta-saml.mdx
+++ b/content/help/okta-saml.mdx
@@ -1,6 +1,6 @@
---
title: Configuring SAML SSO with Okta
-updatedAt: 2023-08-15
+updatedAt: 2023-08-16
summary: For Dub Enterprise users, you can securely manage your team's access to Dub using Okta SAML SSO.
author: steventey
categories:
diff --git a/content/help/okta-scim.mdx b/content/help/okta-scim.mdx
index 21733c0103..6314b93a66 100644
--- a/content/help/okta-scim.mdx
+++ b/content/help/okta-scim.mdx
@@ -1,6 +1,6 @@
---
title: Configuring SCIM Directory Sync with Okta
-updatedAt: 2023-08-15
+updatedAt: 2023-08-16
summary: For Dub Enterprise users, you can automatically provision and deprovision users from your Okta directory to Dub using SCIM Directory Sync.
author: steventey
categories:
diff --git a/pages/api/projects/[slug]/scim.ts b/pages/api/projects/[slug]/scim.ts
index b97765cdbc..ff166d263a 100644
--- a/pages/api/projects/[slug]/scim.ts
+++ b/pages/api/projects/[slug]/scim.ts
@@ -35,7 +35,10 @@ export default withProjectAuth(
tenant: project.id,
product: "Dub",
type: provider,
- webhook_url: `${APP_DOMAIN_WITH_NGROK}/api/scim/v2.0`,
+ webhook_url:
+ process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
+ ? `https://api.dub.co/scim/v2.0`
+ : `${APP_DOMAIN_WITH_NGROK}/api/scim/v2.0`,
webhook_secret: process.env.NEXTAUTH_SECRET as string,
}),
currentDirectoryId &&