Connecting Google
To connect Google, run the following command:
infra providers add google \ --url accounts.google.com \ --client-id <your google client id> \ --client-secret <your google client secret> \ --kind google
Finding required values
- Login to the Google Cloud console.
- Select the project you wish to create a client for or create a new project.
- If you have not yet configured OAuth consent for this project navigate to the APIs and Services > OAuth consent screen dashboard.
- For User Type select Internal to only allow users from your own organization to use the application.
- Click Create.
- For App information enter an App name and a User support email.
- For Developer contact information enter an email.
- Click Save and continue.
- On the scopes page select Add or remove scopes. From the list of scopes select
.../auth/userinfo.email
andopenid
. Scroll to the bottom of the selected scopes page and click Update. - Click Save and continue.
- Verify your OAuth consent and click Back to dashboard.
- Navigate to the APIs and Services > Credentials dashboard and click Create credentials > OAuth client ID.
- For Application type select
Web application
. - For Name enter
Infra
. - Under Authorized redirect URIs select Add URI and add:
http://localhost:8301
(for Infra CLI login)https://<INFRA_SERVER_HOST>/login/callback
(for Infra Dashboard login)
- Click the Create button at the bottom of the page.
- For Application type select
- Note the Client ID and Client Secret fields.