Skip to content

Commit

Permalink
fixed scim implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Aug 26, 2023
1 parent 1fb616a commit 5ef8313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/app/modals/scim-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
5 changes: 0 additions & 5 deletions pages/api/projects/[slug]/scim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5ef8313

Please sign in to comment.