Authentication
Google OAuth
Learn how to authenticate into Tracecat using Google OAuth.
Configuration
In your .env
file, make sure you have the following value set.
Prerequisites
- Create a Google project. Link here.
- Enable the Google People API for the created project. Link here.
Instructions
1
Set up OAuth consent screen in Google
Go to APIs & Services and select the OAuth Consent screen page.
- Create a new app.
- Set Authorized JavaScript origins to the domain you’re serving Tracecat from.
For the local Docker Compose deployment, it’ll be
http://localhost
. - Set the Authorized redirect URIs to:
<your-domain>/auth/oauth/callback
.
2
Set up credentials in Google
Go to APIs & Services and select the Credentials page.
- Under the OAuth 2.0 Client IDs section, select the app you created in the previous step.
- You will now see the following Additional Information on the right hand side of the screen.
- Copy the Client ID and Client secret in a secure location for storing secrets.
3
Configure environment variables in Tracecat
Go into the .env
file and set the following variables:
4
Restart Tracecat
Run docker compose up
.