Skip to main content
Version: Next

Prerequisites for OIDC Authentication

1. Create an app with your provider

First, register the app

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.

Configure the scopes

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

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

Finally, obtain client credentials and discovery url

The goal of this step should be to obtain the following values, which will need to be configured before deploying DataHub:

  • Client ID - A unique identifier for your application with the identity provider
  • Client Secret - A shared secret to use for exchange between you and your identity provider
  • Discovery URL - A URL where the OIDC API of your identity provider can be discovered. This should suffixed by .well-known/openid-configuration. Sometimes, identity providers will not explicitly include this URL in their setup guides, though this endpoint will exist as per the OIDC specification. For more info see http://openid.net/specs/openid-connect-discovery-1_0.html.

Obtain Client Credentials

Navigate to the Credentials tab. Click Create Credentials & select OAuth client ID as the credential type.

On the following screen, select Web application as your Application Type. Add the domain where DataHub is hosted to your 'Authorized Javascript Origins'.

https://your-datahub-domain.com

Add the domain where DataHub is hosted with the path /callback/oidc appended to 'Authorized Redirect URLs'. Finally, click Create

https://your-datahub-domain.com/callback/oidc

You will now receive a pair of values, a client id and a client secret. Bookmark these for the next step.

2. Next steps

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

Cloud

If you're on cloud, the next steps are pretty simple. You can simply paste your obtained credentials into the UI and you'll be done.

👉 See the steps here

Open Source

If you're on open source, you'll want to configure your server among other things.

👉 See the steps here