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.

started on Azure SAML docs

Steven Teye8cec9ae522d
diff --git a/content/help/azure-saml.mdx b/content/help/azure-saml.mdx
new file mode 100644
index 0000000000..15f19b890c
--- /dev/null
+++ b/content/help/azure-saml.mdx
@@ -0,0 +1,225 @@
+---
+title: Configuring SAML SSO with Azure AD
+updatedAt: 2023-08-15
+summary: For Dub Enterprise users, you can securely manage your team's access to Dub using Azure AD SAML SSO.
+author: steventey
+categories:
+ - saml-sso
+ - getting-started
+related:
+ - okta-saml
+excludeHeadingsFromSearch: true
+---
+
+<Note variant="success">
+ This feature is only available on [Dub Enterprise](/pricing).
+</Note>
+
+For Dub Enterprise users, you can securely manage your team's access to Dub using [Azure AD SAML SSO](https://learn.microsoft.com/en-us/azure/active-directory/architecture/auth-saml).
+
+## Step 1: Create or Select SAML Application
+
+In your [Azure Admin console](https://portal.azure.com/), select **Azure Active Directory** (or search for it in the search bar).
+
+<Image
+ alt="Azure Active Directory option on the Azure Dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/azure-ad.png"
+ width={2498}
+ height={1108}
+ hideCaption={true}
+/>
+
+Then, click on **Enterprise applications** from the left sidebar.
+
+<Image
+ alt="Enterprise applications option on the Azure Dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/azure-ent-apps.png"
+ width={2488}
+ height={1412}
+ hideCaption={true}
+/>
+
+If you already have an existing Azure AD SAML application, select it from the list and move on to [Step 2](#step-2-configure-saml-applicaation).
+
+If not, click on **New application** at the top.
+
+<Image
+ alt="Create new application button on the Azure Dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/azure-new-app.png"
+ width={2490}
+ height={1304}
+ hideCaption={true}
+/>
+
+In the next screen, click on **Create your own application**. Give your application a **Name** (e.g. "Dub") and click **Create**.
+
+<Image
+ alt="Create your own application option on the Azure Dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/azure-create-own.png"
+ width={2782}
+ height={1636}
+ hideCaption={true}
+/>
+
+## Step 2: Configure SAML Application
+
+Under the **Manage** section in the left sidebar, select **Single sign-on**. Then, click on **SAML**.
+
+<Image
+ alt="SAML option on the Azure Dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/azure-saml.png"
+ width={2782}
+ height={1474}
+ hideCaption={true}
+/>
+
+Under the **Basic SAML Configuration** section, click on **Edit**.
+
+<Image
+ alt="Edit button on the SAML Settings page on the Azure Dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/azure-saml-edit.png"
+ width={2478}
+ height={1382}
+ hideCaption={true}
+/>
+
+<CopyBox
+ 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}
+/>
+
+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](okta-scim) 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.
+
+Click on the "Assignments" tab, and click "Assign". You can choose to assign users individually, or assign them in bulk by group.
+
+<Image
+ alt="Assigning users in Okta"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-assign.png"
+ width={2346}
+ height={1562}
+ hideCaption={true}
+/>
+
+Select the users or groups you want to assign and click "Assign".
+
+<Image
+ alt="Assigning users in Okta choose users"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-choose.png"
+ width={1564}
+ height={1356}
+ hideCaption={true}
+/>
+
+In the next screen, scroll to the bottom and click "Save and Go Back".
+
+<Image
+ alt="Saving Okta assignment"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-save.png"
+ width={3132}
+ height={2008}
+ hideCaption={true}
+/>
+
+Your assigned users should now receive an invitation email to join your Dub project.
+
+<Image
+ alt="Okta SAML invite email"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/okta-saml-invite.png"
+ width={2226}
+ height={1564}
+ hideCaption={true}
+/>
+
+They will also be able to sign in to Dub using Okta SSO.
diff --git a/content/help/okta-saml.mdx b/content/help/okta-saml.mdx
index ed9335e314..1e7f3686f0 100644
--- a/content/help/okta-saml.mdx
+++ b/content/help/okta-saml.mdx
@@ -8,6 +8,7 @@ categories:
- getting-started
related:
- okta-scim
+ - azure-saml
excludeHeadingsFromSearch: true
---
@@ -19,7 +20,7 @@ For Dub Enterprise users, you can securely manage your team's access to Dub usin
## Step 1: Create SAML Integration
-In your Okta Dashboard, click on "Applications" in the sidebar.
+In your Okta Dashboard, click on **Applications** in the sidebar.
<Image
alt="Applications tab on the Okta Dashboard"
@@ -29,7 +30,7 @@ In your Okta Dashboard, click on "Applications" in the sidebar.
hideCaption={true}
/>
-Then, click on "Create App Integration".
+Then, click on **Create App Integration**.
<Image
alt="Create App Integration button on the Okta Dashboard"
@@ -39,7 +40,7 @@ Then, click on "Create App Integration".
hideCaption={true}
/>
-Select "SAML 2.0" as the sign on method, and click "Next".
+Select **SAML 2.0** as the sign on method, and click **Next**.
<Image
alt="Saml 2.0 option on the Okta Dashboard"
@@ -49,7 +50,7 @@ Select "SAML 2.0" as the sign on method, and click "Next".
hideCaption={true}
/>
-In the "General Settings" page, enter "Dub" as the app name, and click "Next".
+In the **General Settings** page, enter "Dub" as the app name, and click **Next**.
<Image
alt="General Settings page on the Okta Dashboard"
@@ -59,7 +60,7 @@ 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:
+Copy the following values and paste them into the **SAML Settings** > **General** section:
<CopyBox
title="Single sign-on URL"
@@ -78,7 +79,7 @@ Copy the following values and paste them into the "SAML Settings" > "General" se
## Step 2: Configure Attribute Statements
-Right below the "General" section, you'll see the "Attribute Statements" section.
+Right below the **General** section, you'll see the **Attribute Statements** section.
<Image
alt="Attribute Statements section on the Okta Dashboard"
@@ -88,7 +89,7 @@ Right below the "General" section, you'll see the "Attribute Statements" section
hideCaption={true}
/>
-Click on "Add Row" and add the following attribute statements:
+Click on **Add Row** and add the following attribute statements:
| Name | Value |
| ----------- | ---------------- |
@@ -101,7 +102,7 @@ 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".
+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"
@@ -113,7 +114,7 @@ Under the "Feedback" section, select "I'm an Okta customer adding an internal ap
## 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.
+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"
@@ -127,7 +128,7 @@ 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.
+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"
@@ -137,11 +138,11 @@ In your project dashboard on Dub, click on the "Settings" tab in the menu bar at
hideCaption={true}
/>
-Under the "SAML Single Sign-On" section, click on "Configure". This will open up the SAML SSO modal:
+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.
+1. Select **Okta** as the SAML provider.
2. Enter the Metadata URL value that you copied from Step 4.
-3. Click "Save changes".
+3. Click **Save changes**.
<Image
alt="SAML SSO Modal"
@@ -162,7 +163,7 @@ Under the "SAML Single Sign-On" section, click on "Configure". This will open up
Once you've configured SAML SSO, you can start assigning users & groups to your project.
-Click on the "Assignments" tab, and click "Assign". You can choose to assign users individually, or assign them in bulk by group.
+Click on the **Assignments** tab, and click **Assign**. You can choose to assign users individually, or assign them in bulk by group.
<Image
alt="Assigning users in Okta"
@@ -172,7 +173,7 @@ Click on the "Assignments" tab, and click "Assign". You can choose to assign use
hideCaption={true}
/>
-Select the users or groups you want to assign and click "Assign".
+Select the users or groups you want to assign and click **Assign**.
<Image
alt="Assigning users in Okta choose users"
@@ -182,7 +183,7 @@ Select the users or groups you want to assign and click "Assign".
hideCaption={true}
/>
-In the next screen, scroll to the bottom and click "Save and Go Back".
+In the next screen, scroll to the bottom and click **Save and Go Back**.
<Image
alt="Saving Okta assignment"
diff --git a/content/help/okta-scim.mdx b/content/help/okta-scim.mdx
index e3ae5bc02c..cd8b2c4126 100644
--- a/content/help/okta-scim.mdx
+++ b/content/help/okta-scim.mdx
@@ -24,7 +24,7 @@ Before you can configure SCIM Directory Sync, you need to create a SAML applicat
## Step 1: Configure Directory Sync 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.
+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="Directory Sync section on the Dub Dashboard"
@@ -34,10 +34,10 @@ In your project dashboard on Dub, click on the "Settings" tab in the menu bar at
hideCaption={true}
/>
-Under the "Directory Sync" section, click on "Configure". This will open up the Directory Sync modal:
+Under the **Directory Sync** section, click on **Configure**. This will open up the Directory Sync modal:
-1. Select "Okta" as the Directory Provider.
-2. Click "Save changes".
+1. Select **Okta** as the Directory Provider.
+2. Click **Save changes**.
<Image
alt="SCIM Modal"
@@ -62,7 +62,7 @@ This will generate a Directory Sync connection for your Dub project, and return
## Step 2: Add Provisioning to SAML Application
-Go to the "General" tab of your existing Dub Okta SAML application that you want to enable SCIM provisioning for. Under "App Settings" click "Edit".
+Go to the **General** tab of your existing Dub Okta SAML application that you want to enable SCIM provisioning for. Under **App Settings** click **Edit**.
<Image
alt="General tab of Okta SAML application"
@@ -72,7 +72,7 @@ Go to the "General" tab of your existing Dub Okta SAML application that you want
hideCaption={true}
/>
-Select the "Enable SCIM provisioning" option and click "Save".
+Select the "Enable SCIM provisioning" option and click **Save**.
<Image
alt="Enable SCIM provisioning"
@@ -82,7 +82,7 @@ Select the "Enable SCIM provisioning" option and click "Save".
hideCaption={true}
/>
-You should now see a "Provisioning" tab. Select it and click "Edit".
+You should now see a **Provisioning** tab. Select it and click **Edit**.
<Image
alt="Provisioning tab of Okta SAML application"
@@ -92,21 +92,21 @@ You should now see a "Provisioning" tab. Select it and click "Edit".
hideCaption={true}
/>
-1. Under the "SCIM connector base URL" field, enter the **SCIM 2.0 Base URL** value from Step 1.
+1. Under the **SCIM connector base URL** field, enter the **SCIM 2.0 Base URL** value from Step 1.
-2. Under "Unique identifier field for users", enter `userName`.
+2. Under **Unique identifier field for users**, enter `userName`.
<CopyBox title="Copy this unique identifier" copy="userName" />
-3. Under "Supported provisioning actions", select the following options:
+3. Under **Supported provisioning actions**, select the following options:
- Push New Users
- Push Profile Updates
- Push groups
-4. Under "Authentication Mode", select "HTTP Header".
+4. Under **Authentication Mode**, select **HTTP Header**.
-5. Copy & paste the **OAuth Bearer Token** value from Step 1 into the "Authorization" field.
+5. Copy & paste the **OAuth Bearer Token** value from Step 1 into the **Authorization** field.
<Image
alt="Configure SCIM provisioning"
@@ -120,9 +120,9 @@ Click "Test Connector Configuration" to verify that the connection is working, a
## Step 3: Configure Provisioning Actions
-Under the "To App" section, click "Edit".
+Under the **To App** section, click **Edit**.
-Check the following options, and click "Save":
+Check the following options, and click **Save**:
- Create Users
- Update User Attributes
@@ -140,7 +140,7 @@ Check the following options, and click "Save":
Once you've configured Directory sync, you can assign users to Dub directly within Okta.
-Click on the "Assignments" tab, and click "Assign". You can choose to assign users individually, or assign them in bulk by group.
+Click on the **Assignments** tab, and click **Assign**. You can choose to assign users individually, or assign them in bulk by group.
<Image
alt="Assigning users in Okta"
@@ -150,7 +150,7 @@ Click on the "Assignments" tab, and click "Assign". You can choose to assign use
hideCaption={true}
/>
-Select the users or groups you want to assign and click "Assign".
+Select the users or groups you want to assign and click **Assign**.
<Image
alt="Assigning users in Okta choose users"
@@ -160,7 +160,7 @@ Select the users or groups you want to assign and click "Assign".
hideCaption={true}
/>
-In the next screen, scroll to the bottom and click "Save and Go Back".
+In the next screen, scroll to the bottom and click **Save and Go Back**.
<Image
alt="Saving Okta assignment"
diff --git a/lib/utils.ts b/lib/utils.ts
index be0fad1840..319167d514 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -12,7 +12,6 @@ import {
HOME_HOSTNAMES,
HOME_DOMAIN,
} from "./constants";
-import { toast } from "sonner";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
diff --git a/pages/app/[slug]/settings/security.tsx b/pages/app/[slug]/settings/security.tsx
index 9b7f05ef72..cd3e7258a1 100644
--- a/pages/app/[slug]/settings/security.tsx
+++ b/pages/app/[slug]/settings/security.tsx
@@ -323,7 +323,7 @@ const SCIMSection = ({
<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/directory-sync`}
+ 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"
>