Requirements

  • An account in GCP
  • API_URL is the public DNS name of the hoop gateway instance

Contact the administrator of the hoop gateway instance to retrieve the API_URL address.

Identity Provider Configuration

1

Create an Application

Login with your account at https://console.cloud.google.com/apis/credentials

  • Go to Credentials > Create Credentials button > OAuth client ID
  • In Application type, select Web Application
  • Give it a name (i.e. “Hoop”)
2

Configure the Redirect URIs

  • Click Authorized redirect URIs and put the following URI: /api/callback
  • Click Create button
  • Take note on the ClientID and Client secret
  • Click Download JSON (contain useful information)
3

Collect the Credentials

When you created the app, you got those. But they are also available in the JSON file that was downloaded by the creation time. The download is also available at:

  • Credentials > OAuth 2.0 Client IDs > > Actions > Download
4

Collect Issuer Information

The Issuer URI is https://accounts.google.com

Configuring Groups

Groups are synchronized by performing a request to the Gsuite Directory API as a best effort operation.

The name of groups is synchronized as e-mail addresses

1

Add the Scope

Configure the gateway with the env IDP_CUSTOM_SCOPES

  • IDP_CUSTOM_SCOPES=https://www.googleapis.com/auth/admin.directory.group.readonly

Restart the gateway after applying these changes.

2

Enable the Admin SDK API

When you configure groups to sync, you’ll lose the admin access on the next sign in. To prevent this issue, set the configuration ADMIN_USERNAME to a group that you consider as admin on Gsuite.