The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
completed okta saml guide
Steven Tey18a7415b657f
diff --git a/components/app/modals/saml-modal.tsx b/components/app/modals/saml-modal.tsxindex 7f2eaae696..b6aa33a2f7 100644--- a/components/app/modals/saml-modal.tsx+++ b/components/app/modals/saml-modal.tsx@@ -73,15 +73,7 @@ function SAMLModal({<h2 className="text-sm font-medium text-gray-900">SAML Provider</h2>- <InfoTooltip- content={- <SimpleTooltipContent- title="Your SAML provider is the service you use to manage your users."- cta="Read the guide."- href={`${HOME_DOMAIN}/help/article/saml-sso`}- />- }- />+ <InfoTooltip content="Your SAML provider is the service you use to manage your users." /></div><selectid="provider"@@ -100,6 +92,15 @@ function SAMLModal({</option>))}</select>+ <a+ href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml`}+ target="_blank"+ className="ml-2 mt-2 block text-sm text-gray-500 underline"+ >+ Read the guide on{" "}+ {SAML_PROVIDERS.find((p) => p.saml === selectedProvider)?.name}{" "}+ SSO+ </a></div>{selectedProvider === "okta" && (@@ -113,7 +114,7 @@ function SAMLModal({<SimpleTooltipContenttitle="Your metadata URL is the URL to your SAML provider's metadata."cta="Learn more."- href={`${HOME_DOMAIN}/help/article/saml-sso`}+ href={`${HOME_DOMAIN}/help/article/okta-saml#step-4-copy-the-metadata-url`}/>}/>diff --git a/content/help/okta-saml.mdx b/content/help/okta-saml.mdxindex e0fbb410f5..91fbdf8402 100644--- a/content/help/okta-saml.mdx+++ b/content/help/okta-saml.mdx@@ -1,13 +1,13 @@---title: Configuring SAML SSO with Okta-updatedAt: 2023-08-09+updatedAt: 2023-08-15summary: For Dub Enterprise users, you can securely manage your team's access to Dub using Okta SAML SSO.author: steventeycategories:- saml-sso- getting-startedrelated:- # - okta-scim+ - okta-scimexcludeHeadingsFromSearch: true---@@ -59,7 +59,105 @@ In the "General Settings" page, enter "Dub" as the app name, and click "Next".hideCaption={true}/>+Copy the following values and paste them into the "SAML Settings" > "General" section:+<CopyBox- title="Copy this Single sign-on URL"+ title="Single sign-on URL"copy="https://api.dub.co/auth/saml/callback"/>++<CopyBox title="Audience URI (SP Entity ID)" copy="https://saml.dub.co" />++<Image+ alt="SAML Settings page on the Okta Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-urls.png"+ width={3014}+ height={1720}+ hideCaption={true}+/>++## Step 2: Configure Attribute Statements++Right below the "General" section, you'll see the "Attribute Statements" section.++<Image+ alt="Attribute Statements section on the Okta Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-attributes.png"+ width={1578}+ height={1024}+ hideCaption={true}+/>++Click on "Add Row" and add the following attribute statements:++| Name | Value |+| ----------- | ---------------- |+| `id` | `user.id` |+| `email` | `user.email` |+| `firstName` | `user.firstName` |+| `lastName` | `user.lastName` |++Once that's done, click "Next".++## Step 3: Submit Feedback++Under the "Feedback" section, select "I'm an Okta customer adding an internal app" and click "Finish".++<Image+ alt="Feedback section on the Okta Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-feedback.png"+ width={2244}+ height={1430}+ hideCaption={true}+/>++## Step 4: Copy the Metadata URL++After you've submitted the feedback, you'll be redirected to the "Sign On" tab, which contains the metadata URL.++<Image+ alt="Sign On tab on the Okta Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-metadata-url.png"+ width={3024}+ height={1720}+ hideCaption={true}+/>++Copy the metadata URL and return to the Dub dashboard.++## Step 5: Configure SAML SSO on Dub++In your project dashboard on Dub, click on the "Settings" tab in the menu bar at the top. Then, click on the "Security" tab in the sidebar.++<Image+ alt="SAML SSO section on the Dub Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-sso-section.png"+ width={2480}+ height={1486}+ hideCaption={true}+/>++Under the "SAML Single Sign-On" section, click on "Configure". This will open up the SAML SSO modal:++1. Select "Okta" as the SAML provider.+2. Enter the Metadata URL value that you copied from Step 4.+3. Click "Save changes".++<Image+ alt="SAML SSO Modal"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-modal.png"+ width={2068}+ height={1720}+ hideCaption={true}+/>++## Step 6: Assign Users++<Note variant="warning">+ We highly recommend configuring SCIM Directory Sync before assigning users &+ groups to your project. This will ensure that your users are automatically+ added to your project when they sign in for the first time, as well as+ automatically removed when they are deactivated in Okta.+</Note>++Once you've configured SAML SSO, you can start assigning users & groups to your project.diff --git a/content/help/okta-scim.mdx b/content/help/okta-scim.mdxnew file mode 100644index 0000000000..be234c0ec0--- /dev/null+++ b/content/help/okta-scim.mdx@@ -0,0 +1,11 @@+---+title: Configuring SCIM Directory Sync with Okta+updatedAt: 2023-08-15+summary: For Dub Enterprise users, you can securely manage your team's access to Dub using Okta's SCIM integration.+author: steventey+categories:+ - saml-sso+related:+ - okta-saml+excludeHeadingsFromSearch: true+---diff --git a/lib/constants/index.ts b/lib/constants/index.tsindex 4700498eca..300d93d46b 100644--- a/lib/constants/index.ts+++ b/lib/constants/index.ts@@ -41,7 +41,7 @@ export const PAGINATION_LIMIT = 100;export const HOME_HOSTNAMES = new Set(["home.localhost:8888",- "localhost",+ "home.localhost","dub.sh",]);@@ -54,6 +54,7 @@ export const HOME_DOMAIN =export const APP_HOSTNAMES = new Set(["localhost:8888",+ "localhost","app.dub.sh","preview.dub.sh",]);diff --git a/pages/app/[slug]/settings/security.tsx b/pages/app/[slug]/settings/security.tsxindex 5018936612..9b7f05ef72 100644--- a/pages/app/[slug]/settings/security.tsx+++ b/pages/app/[slug]/settings/security.tsx@@ -1,4 +1,3 @@-import { useRouter } from "next/router";import Button from "#/ui/button";import { useSAMLModal } from "@/components/app/modals/saml-modal";import { useRemoveSAMLModal } from "@/components/app/modals/remove-saml-modal";@@ -15,7 +14,6 @@ import { useSCIMModal } from "@/components/app/modals/scim-modal";import { HOME_DOMAIN, SAML_PROVIDERS } from "#/lib/constants";import useProject from "#/lib/swr/use-project";import { TooltipContent } from "#/ui/tooltip";-import { ModalContext } from "#/ui/modal-provider";import { useUpgradePlanModal } from "@/components/app/modals/upgrade-plan-modal";export default function ProjectSecurity() {@@ -166,7 +164,7 @@ const SAMLSection = ({<div className="flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 px-3 py-5 sm:px-10"><a- href={`${HOME_DOMAIN}/help/article/saml-sso`}+ href={`${HOME_DOMAIN}/help/category/saml-sso`}target="_blank"className="text-sm text-gray-400 underline underline-offset-4 transition-colors hover:text-gray-700">