Skip to content

Commit 38486ed

Browse files
authored
Merge pull request #313 from nocodb/docs/sso
docs: sso updated
2 parents 0e0791b + f4ec51d commit 38486ed

File tree

13 files changed

+116
-23
lines changed

13 files changed

+116
-23
lines changed

content/docs/account-settings/authentication/FAQs.md

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,53 @@
11
---
22
title: 'SSO FAQs'
33
description: 'Frequently asked questions about Single Sign-On (SSO) in NocoDB.'
4-
icon: "helpCircle"
54
---
65

76
## Why do I see the error "SSO is not configured for this domain" when trying to sign in?
87

9-
This error means that the email address you are using does not belong to a domain that has been verified and configured for SSO in your workspace settings. Only users with email addresses under your verified domain(s) can sign in via SSO. For example, if you’ve verified `example.com`, only users with emails like `user@example.com` will be allowed to sign in through the SSO page.
8+
This error means that the email address you are using does not belong to a domain that has been verified and configured for SSO in your workspace settings. Only users with email addresses under your verified domain(s) can sign in via SSO. For example, if you've verified `example.com`, only users with emails like `user@example.com` will be allowed to sign in through the SSO page.
9+
10+
## How do I verify my domain for SSO?
11+
12+
**For NocoDB Cloud (Both Business and Enterprise Plans):**
13+
1. Access the domain verification section:
14+
- **Business Plan**: Navigate to **Workspace Settings** > **Authentication** > **Domain Verification**
15+
- **Enterprise Plan**: Navigate to **Account Settings** > **Authentication** > **Domain Verification**
16+
2. Enter your domain (e.g., `example.com`)
17+
3. Copy the TXT record provided by NocoDB
18+
4. Add the TXT record to your domain’s DNS via your registrar/DNS provider.
19+
5. Wait for DNS propagation (this may take a few minutes to several hours)
20+
6. Click **Verify** button in NocoDB to confirm domain ownership
21+
22+
**For NocoDB Self-hosted/On-prem:** Domain verification is not required. Configure SSO providers directly without DNS verification.
1023

1124
## Do I need to verify my domain when setting up SSO (e.g., Google OAuth)?
1225

13-
**For NocoDB Cloud:** Yes. In addition to configuring Google OAuth or other SSO providers, you must also verify your domain in the SSO settings. This is done by adding your domain and verifying it by adding the provided TXT record to your DNS. Only after domain verification will users from that domain be able to sign in via SSO.
26+
**For NocoDB Cloud (Both Business and Enterprise Plans):** Yes. In addition to configuring Google OAuth or other SSO providers, you must also verify your domain in the SSO settings. This is done by adding your domain and verifying it by adding the provided TXT record to your DNS. Only after domain verification will users from that domain be able to sign in via SSO.
1427

1528
**For NocoDB Self-hosted/On-prem:** Domain verification is not required. You can configure SSO providers without verifying your domain via DNS.
1629

30+
## When should I verify my domain?
31+
32+
Domain verification should be completed **before** configuring any SSO providers (Google OAuth, SAML, OIDC) for Cloud users (both Business and Enterprise plans). This ensures that:
33+
34+
1. Only users with email addresses from your verified domain can access the workspace
35+
2. SSO providers are properly configured with domain restrictions
36+
3. The authentication flow works correctly for your organization's users
37+
38+
If you try to configure SSO without domain verification, you may encounter errors or users from unverified domains may not be able to sign in.
39+
40+
## Why does domain verification fail even after adding the TXT record?
41+
42+
DNS propagation can take time to complete. After adding the TXT record to your domain's DNS settings:
43+
44+
- **Typical propagation time**: 5-30 minutes
45+
- **Maximum propagation time**: Up to 24-48 hours (rare)
46+
- **Check propagation**: Use online DNS lookup tools to verify the TXT record is visible
47+
- **Retry verification**: If verification fails, wait a few minutes and try again
48+
49+
If verification fails after 24 hours, ensure the TXT record was added correctly. If issues persist, contact your DNS provider.
50+
1751
## Why do I get a redirection/callback URL or URI error when setting up SSO?
1852

1953
This error usually means that the Redirect URL (sometimes called Callback URL or Redirect URI) configured in your identity provider does not exactly match the one provided by NocoDB. Common reasons include:

content/docs/account-settings/authentication/google-oauth.mdx

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,42 @@ NocoDB offers a functionality that allows users to connect with Google OAuth 2.0
1010
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1111
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1212

13-
1. Copy `Redirect URL` from NocoDB
14-
- **Cloud version**: Go to `Workspace Settings` > `Authentication` > `Google OAuth`
15-
- **On-prem version**: Go to `Account Settings` > `Authentication` > `Google OAuth`
16-
- Copy the `Redirect URL` from the `Google OAuth` section
17-
2. Go to [Google Cloud Console](https://console.cloud.google.com/) and create a new project.
18-
3. Visit the `OAuth consent screen` within the `APIs & Services` section.
19-
a) Decide on the configuration and registration preferences for your application, specifying the intended user demographic
20-
b) Click on the `Create` button
21-
4. Set up the OAuth consent screen by providing details about the application and specifying the authorized domains where you host NocoDB.
22-
5. Proceed to the `Credentials` screen, then click on `Create Credentials`. Choose `OAuth Client ID` from the available options to generate OAuth credentials.
23-
6. Choose `Web application` from the options available in the `Application type` dropdown menu.
24-
7. Configure the following
25-
a) `Authorized JavaScript origins` refer to the HTTP origins where your web application is hosted, such as https:///app.nocodb.com
26-
b) `Authorized Redirect URIs` refer to the URIs where the user is redirected after successful authentication with Google. Paste the *Redirect URL* copied from NocoDB in step (1).
27-
8. Click on the `Create` button to generate the OAuth credentials. Copy the `Client ID` and `Client Secret` from the OAuth 2.0 Client IDs section.
28-
9. Go back to NocoDB and paste the credentials in in the respective fields in the `Google OAuth` section:
29-
- **Cloud version**: `Workspace Settings` > `Authentication` > `Google OAuth`
30-
- **On-prem version**: `Account Settings` > `Authentication` > `Google OAuth`
13+
<Callout type="warning"> **Domain Verification Required (Cloud Plans)**\
14+
\
15+
Before configuring Google OAuth, your domain must be verified in NocoDB (applies to both Business and Enterprise plans).
16+
Only users with email addresses from verified domains can sign in via SSO.
17+
See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details. </Callout>
18+
19+
20+
## Accessing Google OAuth Settings
21+
Accessing **NocoDB Google OAuth** section depends on your plan:
22+
- **Cloud version**: Go to `Workspace Settings` > `Authentication` > `Google OAuth`
23+
- **On-prem version**: Go to `Account Settings` > `Authentication` > `Google OAuth`
24+
25+
26+
## Steps to Configure Google OAuth
27+
1. **Verify your domain** (Cloud plans only) :
28+
- See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification).
29+
2. Copy `Redirect URL` from [NocoDB Google OAuth](#accessing-google-oauth-settings) section
30+
3. Go to [Google Cloud Console](https://console.cloud.google.com/) and create a new project.
31+
4. **Configure the OAuth consent screen**
32+
* Navigate to **APIs & Services** > **OAuth consent screen**
33+
* Provide app details and select user access type
34+
* Add authorized domains where NocoDB is hosted
35+
* Click **Create**
36+
5. **Generate OAuth credentials**
37+
- Go to **APIs & Services** > **Credentials**
38+
- Click **Create Credentials** > **OAuth Client ID**
39+
- Select **Web application** as the application type
40+
6. **Set up application details**
41+
* **Authorized JavaScript origins**: Enter your app domain (e.g., `https://app.nocodb.com`)
42+
* **Authorized Redirect URIs**: Paste the Redirect URL copied from step 2
43+
7. **Create credentials and copy values**
44+
* Click **Create**
45+
* Copy the **Client ID** and **Client Secret** from the generated OAuth 2.0 Client ID
46+
8. **Add credentials to NocoDB**
47+
- Paste the **Client ID** and **Client Secret** into the respective fields in [NocoDB Google OAuth](#accessing-google-oauth-settings) section
3148

3249
<Callout type="info">For more common questions and troubleshooting, see our [SSO FAQ](/docs/product-docs/account-settings/authentication/FAQs).</Callout>
50+
51+
---

content/docs/account-settings/authentication/index.mdx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,25 @@ For users on the Enterprise plan, the SSO configuration menu is located in the *
7676
![SSO Configuration](/img/v2/account-settings/accessing-sso-enterprise-plan-2.png)
7777

7878
Alternatively, you can directly access the SSO configuration screen using the URL:
79-
`https://your-domain/#/account/authentication`
79+
`https://your-domain/#/account/authentication`
80+
81+
### Domain Verification
82+
83+
For **NocoDB Cloud** users (both Business and Enterprise plans), domain verification is required before configuring SSO providers. This ensures that only users with email addresses from your verified domain can access the workspace through SSO.
84+
85+
**Domain Verification Process:**
86+
1. Access the domain verification section:
87+
- **Business Plan**: Navigate to **Workspace Settings** > **Authentication** > **Domain Verification**
88+
- **Enterprise Plan**: Navigate to **Account Settings** > **Authentication** > **Domain Verification**
89+
2. Enter your domain (e.g., `example.com`)
90+
3. Copy the TXT record provided by NocoDB
91+
4. Add the TXT record to your domain’s DNS via your registrar/DNS provider.
92+
5. Wait for DNS propagation (this may take a few minutes to several hours)
93+
6. Click **Verify** button in NocoDB to confirm domain ownership
94+
95+
Once verified, only users with email addresses under your verified domain(s) will be able to sign in via SSO. For example, if you've verified `example.com`, only users with emails like `user@example.com` will be allowed to sign in through the SSO page.
96+
97+
98+
<Callout type="info">**On-premise deployments** do not require domain verification. Configure SSO providers directly without DNS verification.</Callout>
99+
100+
---

content/docs/account-settings/authentication/meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"authentication",
55
"google-oauth",
66
"saml-sso",
7-
"oidc-sso"
7+
"oidc-sso",
8+
"FAQs"
89
]
910
}

content/docs/account-settings/authentication/oidc-sso/auth0.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article briefs about the steps to configure Auth0 as Identity service provi
1212
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1313
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1414

15+
<Callout type="warning">**Domain Verification Required for Cloud Plans**: Before configuring OIDC SSO, you must verify your domain in NocoDB (required for both Business and Enterprise plans in the cloud). Only users with email addresses from verified domains can sign in via SSO. See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details.</Callout>
16+
1517
### NocoDB, Retrieve `Redirect URL`
1618
1. Go to `Account Settings`
1719
2. Select `Authentication (SSO)`

content/docs/account-settings/authentication/oidc-sso/azure-ad.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article briefs about the steps to configure Azure AD as Identity service pr
1212
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1313
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1414

15+
<Callout type="warning">**Domain Verification Required for Cloud Plans**: Before configuring OIDC SSO, you must verify your domain in NocoDB (required for both Business and Enterprise plans in the cloud). Only users with email addresses from verified domains can sign in via SSO. See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details.</Callout>
16+
1517
### NocoDB, Retrieve `Redirect URL`
1618
1. Go to `Account Settings`
1719
2. Select `Authentication (SSO)`

content/docs/account-settings/authentication/oidc-sso/okta.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ This article briefs about the steps to configure Okta as Identity service provid
1313
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1414
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1515

16+
<Callout type="warning">**Domain Verification Required for Cloud Plans**: Before configuring OIDC SSO, you must verify your domain in NocoDB (required for both Business and Enterprise plans in the cloud). Only users with email addresses from verified domains can sign in via SSO. See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details.</Callout>
17+
1618
### NocoDB, Retrieve `Redirect URL`
1719
1. Go to `Account Settings`
1820
2. Select `Authentication (SSO)`

content/docs/account-settings/authentication/oidc-sso/ping-identity.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article briefs about the steps to configure Ping Identity as Identity servi
1212
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1313
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1414

15+
<Callout type="warning">**Domain Verification Required for Cloud Plans**: Before configuring OIDC SSO, you must verify your domain in NocoDB (required for both Business and Enterprise plans in the cloud). Only users with email addresses from verified domains can sign in via SSO. See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details.</Callout>
16+
1517
### NocoDB, Retrieve `Redirect URL`
1618
1. Go to `Account Settings`
1719
2. Select `Authentication (SSO)`

content/docs/account-settings/authentication/saml-sso/auth0.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article briefs about the steps to configure Auth0 as Identity service provi
1212
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1313
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1414

15+
<Callout type="warning">**Domain Verification Required for Cloud Plans**: Before configuring SAML SSO, you must verify your domain in NocoDB (required for both Business and Enterprise plans in the cloud). Only users with email addresses from verified domains can sign in via SSO. See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details.</Callout>
16+
1517
### NocoDB, Retrieve `SAML SSO` Configuration details
1618
1. Go to `Account Settings`
1719
2. Select `Authentication (SSO)`

content/docs/account-settings/authentication/saml-sso/azure-ad.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This article briefs about the steps to configure Active Directory as Identity se
1212
<Callout type="info">For users on **Business plan**, the SSO configuration menu is available under **Workspace Settings**.
1313
Refer [here](/docs/product-docs/account-settings/authentication#business-plan) for more details.</Callout>
1414

15+
<Callout type="warning">**Domain Verification Required for Cloud Plans**: Before configuring SAML SSO, you must verify your domain in NocoDB (required for both Business and Enterprise plans in the cloud). Only users with email addresses from verified domains can sign in via SSO. See [Domain Verification](/docs/product-docs/account-settings/authentication#domain-verification) for details.</Callout>
16+
1517
### NocoDB, Retrieve `SAML SSO` Configuration details
1618

1719
1. Go to `Account Settings`

0 commit comments

Comments
 (0)