Connecting Google

To connect Google, run the following command:

infra providers add google \
  --url \
  --client-id <your google client id> \
  --client-secret <your google client secret> \
  --kind google

Finding required values

  1. Login to the Google Cloud console.
  2. Select the project you wish to create a client for or create a new project. Google Cloud project console
  3. If you have not yet configured OAuth consent for this project navigate to the APIs and Services > OAuth consent screen dashboard. OAuth consent navigation
    • 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/ and openid. 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. OAuth consent summary
  4. Navigate to the APIs and Services > Credentials dashboard and click Create credentials > OAuth client ID. OAuth client navigation
    • For Application type select Web application.
    • For Name enter Infra.
    • Under Authorized redirect URIs select Add URI and add:
      1. http://localhost:8301 (for Infra CLI login)
      2. https://<INFRA_SERVER_HOST>/login/callback (for Infra Dashboard login)
    • Click the Create button at the bottom of the page. OAuth credentials create
  5. Note the Client ID and Client Secret fields. OAuth client details

Sign up for updates

You can unsubscribe at any time.