Google OAuth
Learn about different methods available for authentication with NocoDB.
NocoDB offers a functionality that allows users to connect with Google OAuth 2.0, enabling them to log into their NocoDB accounts using their Google authentication credentials. This article provides a step-by-step guide to integrating Google OAuth 2.0 with NocoDB.
For users on Business plan, the SSO configuration menu is available under Workspace Settings.
Refer here for more details.
- Copy
Redirect URL
from NocoDB- Cloud version: Go to
Workspace Settings
>Authentication
>Google OAuth
- On-prem version: Go to
Account Settings
>Authentication
>Google OAuth
- Copy the
Redirect URL
from theGoogle OAuth
section
- Cloud version: Go to
- Go to Google Cloud Console and create a new project.
- Visit the
OAuth consent screen
within theAPIs & Services
section. a) Decide on the configuration and registration preferences for your application, specifying the intended user demographic b) Click on theCreate
button - Set up the OAuth consent screen by providing details about the application and specifying the authorized domains where you host NocoDB.
- Proceed to the
Credentials
screen, then click onCreate Credentials
. ChooseOAuth Client ID
from the available options to generate OAuth credentials. - Choose
Web application
from the options available in theApplication type
dropdown menu. - Configure the following
a)
Authorized JavaScript origins
refer to the HTTP origins where your web application is hosted, such as https:///app.nocodb.com 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). - Click on the
Create
button to generate the OAuth credentials. Copy theClient ID
andClient Secret
from the OAuth 2.0 Client IDs section. - Go back to NocoDB and paste the credentials in in the respective fields in the
Google OAuth
section:- Cloud version:
Workspace Settings
>Authentication
>Google OAuth
- On-prem version:
Account Settings
>Authentication
>Google OAuth
- Cloud version:
For more common questions and troubleshooting, see our SSO FAQ.