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.

fixed scim implementation

Steven Tey5ef8313445a6
diff --git a/components/app/modals/scim-modal.tsx b/components/app/modals/scim-modal.tsx
index 1463256a78..03f4046a06 100644
--- a/components/app/modals/scim-modal.tsx
+++ b/components/app/modals/scim-modal.tsx
@@ -172,14 +172,14 @@ function SCIMModal({
</div>
<div className="mt-1 flex w-full items-center justify-between rounded-md border border-gray-300 bg-white px-3 py-2 shadow-sm">
<div className="overflow-auto scrollbar-hide">
- <p className="whitespace-nowrap text-gray-600 sm:text-sm">{`${scim.directories[0].webhook.endpoint}/${scim.directories[0].id}`}</p>
+ <p className="whitespace-nowrap text-gray-600 sm:text-sm">{`${scim.directories[0].scim.endpoint}/${scim.directories[0].id}`}</p>
</div>
<button
type="button"
className="pl-2"
onClick={() => {
navigator.clipboard.writeText(
- `${scim.directories[0].webhook.endpoint}/${scim.directories[0].id}`,
+ `${scim.directories[0].scim.endpoint}/${scim.directories[0].id}`,
);
setCopiedBaseUrl(true);
toast.success("Copied to clipboard");
diff --git a/pages/api/projects/[slug]/scim.ts b/pages/api/projects/[slug]/scim.ts
index ea237d6234..217e972061 100644
--- a/pages/api/projects/[slug]/scim.ts
+++ b/pages/api/projects/[slug]/scim.ts
@@ -35,11 +35,6 @@ export default withProjectAuth(
tenant: project.id,
product: "Dub",
type: provider,
- 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 &&
directorySyncController.directories.delete(currentDirectoryId),