Skip to main content
Version: Next

Prerequisites for OIDC Authentication

This guide will walk you through the following steps with your identity provider:

  1. Create and register an application with your identity provider.
  2. Obtain client credentials and discovery URI to be used in DataHub.

Choose your identity provider to get started:

Step 1. Create and Register your App

1. Create a project in the Google API Console

Using an account linked to your organization, navigate to the Google API Console and select New project.

Within this project, we will configure the OAuth2.0 screen and credentials.

Navigate to OAuth consent screen. This is where you'll configure the screen your users see when attempting to log in to DataHub. Select Internal (if you only want your company users to have access) and then click Create.

Note that in order to complete this step you should be logged into a Google account associated with your organization.

Fill out the details in the App Information & Domain sections. Make sure the 'Application Home Page' provided matches where DataHub is deployed at your organization. Once you've completed this, Save & Continue.

3. Configure the appropriate scopes

Next, click Add or Remove Scopes. Select the following scopes and click Save & Continue.

  • .../auth/userinfo.email
  • .../auth/userinfo.profile
  • openid

Step 2. Create Client Credentials

The following steps will walk you through generating a Client ID and Client Secret.

  1. Navigate to the Credentials tab and click Create Credentials.
  2. Select OAuth client ID as the credential type.
  3. On the next screen, select Web application as your Application Type.
  4. In Authorized JavaScript Origins, add the domain where you are hosting DataHub, i.e. https://your-datahub-domain.com.
  5. In Authorized Redirect URLs, add the domain where you are hosting DataHub with the path /callback/oidc appended, i.e. https://your-datahub-domain.com/callback/oidc.
  6. Click Create.

This will generate a Client ID and Client Secret. You will need these values in the next step, in addition to the following Discovery URI:

https://accounts.google.com/.well-known/openid-configuration`

Next Steps

Once you have your Client ID, Client Secret, and Discovery URL, you may proceed with next steps.

DataHub Cloud

If you're deployed with DataHub Cloud, you can enable OIDC SSO with a few clicks. 👉 See the guide here.

Open Source

If you're self-deployed with DataHub Core, you'll need to configure your frontend server within your deployment environment. 👉 See the guide here.