Enabling OIDC
When running in airplane mode, you are logged in automatically and skip any authentication steps. This saves developers time! Sometimes, though, you'll want to log in and log out as you implement features. This document describes how to enable Evidential's integration with Google OIDC Connect.
Note
Note: This process requires some familiarity with OAuth and Google Cloud. If you're unfamiliar, contact us and we can help you.
-
Log in to the Google Cloud Console.
-
Navigate to OAuth Overview.
-
If you haven't set up OAuth before, you may be prompted to configure Google Auth Platform. If so, provide the following information:
Setting Value App name My Evidential User Support Email your email address Audience Internal Contact Information your email address -
Navigate to Google Auth Platform > Clients.
-
Click "Create Client"
-
Configure the client as follows:
Setting Value Application Type Web Application Name evidential development Authorized JavaScript Origins http://localhost:3000Authorized Redirect URIs (1 of 2) http://localhost:3000/(note: trailing /)Authorized Redirect URIs (2 of 2) http://localhost:8000/v1/a/oidc/callback -
Click the "Create" button.
-
You will be shown a "Client ID" and a "Client Secret" value. Keep these for later.
-
In your backend repository, add or edit your .env file to include these lines:
-
In your frontend repository, add or edit your .env file to include this line::
-
Instead of using
task start-airplaneto start the services, usetask startinstead.
Note
Note: If your development environment requires you to use a different port number, you may also need to set
the GOOGLE_OIDC_REDIRECT_URI variable on the backend.