Google OAuth
Create OAuth credentials in a Google Cloud project
Section titled “Create OAuth credentials in a Google Cloud project”https://developers.google.com/workspace/guides/create-credentials#oauth-client-id
Steps:
- Create a new GCP project, or use an existing one
- Navigate to “APIs & Services > Credentials”
- Click ”+ CREATE CREDENTIALS” > OAuth client ID
- Select”Web application” as the Application type
- Name it “OpenRelik Localhost” or to whatever you want (it doesn’t matter)
- In “Authorized redirect URIs” click ”+ ADD URI”
- Enter “http://localhost:8710/auth”
- Click “SAVE”
On the right you will have details for your new credentials. The important ones are:
- Client ID
- Client secret
You need both of these in the next step.
Edit config/settings.toml
Section titled “Edit config/settings.toml”Configure the Google OAuth credentials that was created in the previous step.
client_id = "<CLIENT ID FROM PREVIOUS STEP>"client_secret = "<CLIENT SECRET FROM PREVIOUS STEP>"Grant yourself access to the server
allowlist = ['<YOUR GMAIL ACCOUNT NAME>@gmail.com']