The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Google SAML/SSO
Steven Teyf9e5baef7ee2
diff --git a/components/app/modals/saml-modal.tsx b/components/app/modals/saml-modal.tsxindex c8ffe3a8b7..bced5500b6 100644--- a/components/app/modals/saml-modal.tsx+++ b/components/app/modals/saml-modal.tsx@@ -58,6 +58,9 @@ function SAMLModal({},body: JSON.stringify({metadataUrl: e.currentTarget.metadataUrl.value,+ encodedRawMetadata: Buffer.from(+ e.currentTarget.metadataRaw.value,+ ).toString("base64"),}),}).then(async (res) => {if (res.ok) {@@ -97,9 +100,10 @@ function SAMLModal({<optionkey={provider.saml}value={provider.saml}- disabled={provider.wip}+ // disabled={provider.wip}>- {provider.name} {provider.wip && "(Coming Soon)"}+ {provider.name}+ {/* {provider.wip && "(Coming Soon)"} */}</option>))}</select>@@ -123,16 +127,43 @@ function SAMLModal({</div>{currentProvider &&- (selectedProvider === "okta" || selectedProvider === "azure") && (+ (selectedProvider === "google" ? (<div className="border-t border-gray-200 pt-4"><div className="flex items-center space-x-1"><h2 className="text-sm font-medium text-gray-900">- {currentProvider.samlModalCopy.url}+ {currentProvider.samlModalCopy}</h2><InfoTooltipcontent={<SimpleTooltipContent- title={`Your ${currentProvider.samlModalCopy.url} is the URL to your SAML provider's metadata.`}+ title={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata.`}+ cta="Learn more."+ href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url`}+ />+ }+ />+ </div>+ <input+ id="metadataRaw"+ name="metadataRaw"+ autoFocus+ type="url"+ placeholder="https://"+ autoComplete="off"+ required+ className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"+ />+ </div>+ ) : (+ <div className="border-t border-gray-200 pt-4">+ <div className="flex items-center space-x-1">+ <h2 className="text-sm font-medium text-gray-900">+ {currentProvider.samlModalCopy}+ </h2>+ <InfoTooltip+ content={+ <SimpleTooltipContent+ title={`Your ${currentProvider.samlModalCopy} is the URL to your SAML provider's metadata.`}cta="Learn more."href={`${HOME_DOMAIN}/help/article/${selectedProvider}-saml#step-4-copy-the-metadata-url`}/>@@ -150,7 +181,7 @@ function SAMLModal({className="mt-1 block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-black focus:outline-none focus:ring-black sm:text-sm"/></div>- )}+ ))}<Buttontext="Save changes"disabled={!selectedProvider}diff --git a/content/help/azure-saml.mdx b/content/help/azure-saml.mdxindex a86876c0d0..1923b7dfc1 100644--- a/content/help/azure-saml.mdx+++ b/content/help/azure-saml.mdx@@ -8,7 +8,7 @@ categories:related:- azure-scim- okta-saml- - okta-scim+ - google-samlexcludeHeadingsFromSearch: true---diff --git a/content/help/google-saml.mdx b/content/help/google-saml.mdxnew file mode 100644index 0000000000..1f801802a6--- /dev/null+++ b/content/help/google-saml.mdx@@ -0,0 +1,202 @@+---+title: Configuring SAML SSO with Google Workspace+updatedAt: 2023-09-05+summary: For Dub Enterprise users, you can securely manage your team's access to Dub using Google Workspace SAML SSO.+author: steventey+categories:+ - saml-sso+related:+ # - google-scim+ - okta-saml+ - azure-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 [Google Workspace SAML SSO](https://cloud.google.com/architecture/identity/single-sign-on).++## Step 1: Create SAML Integration++In your [Google Admin](https://admin.google.com/) dashboard, click on **Apps** in the sidebar and select **Web and mobile apps** from the list.++<Image+ alt="Apps > Web and mobile apps on the Google Admin Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/google-saml-apps.png"+ width={1612}+ height={960}+ hideCaption={true}+/>++If you don't already have an existing SAML application, click on **Add app** and select **Add custom SAML app** from the dropdown menu.++<Image+ alt="Create App on the Google Admin Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/google-saml-create-app.png"+ width={1611}+ height={959}+ hideCaption={true}+/>++Enter the \*App name** for your application, and click **Continue\*\*.++<Image+ alt="Configuring SAML app name on the Google Admin Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/google-saml-app-name.png"+ width={1624}+ height={960}+ hideCaption={true}+/>++In the next screen, click **Download Metadata** to download the metadata XML file and click **Continue**.++<Image+ alt="Downloading SAML metadata on the Google Admin Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/google-saml-download.png"+ width={1605}+ height={986}+ hideCaption={true}+/>++Copy the following values and paste them under **Service provider details**:++<CopyBox title="ACS URL" copy="https://api.dub.co/auth/saml/callback" />++<CopyBox title="Entity ID" copy="https://saml.dub.co" />++<Image+ alt="Service provider details on the Google Admin Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/google-saml-provider.png"+ width={1603}+ height={962}+ hideCaption={true}+/>++Click **Next** to proceed to the next step.++## Step 2: Configure Attribute Mapping++On the next screen, under the **Attributes** section, click **Add Mapping** and add the following attribute mappings:++| Google Directory attributes | App attributes |+| --------------------------- | -------------- |+| `Primary email` | `email` |+| `First name` | `firstName` |+| `Last name` | `lastName` |++<Image+ alt="Attribute Mapping on the Google Admin Dashboard"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/google-saml-attributes.png"+ width={1611}+ height={979}+ hideCaption={true}+/>++Once that's done, click **Finish**.++## 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/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="SAML invite email"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/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.mdxindex f2906ee8d8..7c5f5bc28c 100644--- a/content/help/okta-saml.mdx+++ b/content/help/okta-saml.mdx@@ -7,8 +7,8 @@ categories:- saml-ssorelated:- okta-scim+ - google-saml- azure-saml- - azure-scimexcludeHeadingsFromSearch: true---@@ -98,7 +98,7 @@ Click on **Add Row** and add the following attribute statements:| `firstName` | `user.firstName` || `lastName` | `user.lastName` |-Once that's done, click "Next".+Once that's done, click **Next**.## Step 3: Submit Feedbackdiff --git a/lib/constants/index.ts b/lib/constants/index.tsindex 65e21895ac..1675255e52 100644--- a/lib/constants/index.ts+++ b/lib/constants/index.ts@@ -185,9 +185,7 @@ export const SAML_PROVIDERS = [name: "Okta",logo: "/_static/icons/okta.svg",saml: "okta",- samlModalCopy: {- url: "Metadata URL",- },+ samlModalCopy: "Metadata URL",scim: "okta-scim-v2",scimModalCopy: {url: "SCIM 2.0 Base URL",@@ -198,9 +196,7 @@ export const SAML_PROVIDERS = [name: "Azure AD",logo: "/_static/icons/azure.svg",saml: "azure",- samlModalCopy: {- url: "App Federation Metadata URL",- },+ samlModalCopy: "App Federation Metadata URL",scim: "azure-scim-v2",scimModalCopy: {url: "Tenant URL",@@ -211,14 +207,11 @@ export const SAML_PROVIDERS = [name: "Google Workspace",logo: "/_static/icons/google.svg",saml: "google",- samlModalCopy: {- url: "Metadata URL",- },+ samlModalCopy: "XML Metadata File",scim: "google",scimModalCopy: {url: "SCIM 2.0 Base URL",token: "OAuth Bearer Token",},- wip: true,},];