Gebo.ai setup guide · Security · Page 25

Google

Your people sign in to Gebo.ai with their Google Workspace account. Create an OAuth client in the Google Cloud console, then enter it in Setup.

Time
15 minutes.
You need
Access to a Google Cloud project of your organization, and Gebo.ai open over https at the address your users use.

1Create the OAuth client at Google

  1. In the Google Cloud console choose the project and open Google Auth Platform (APIs & Services → OAuth consent screen).
  2. The first time, describe the application: its name, a support e-mail and, as Audience, Internal: only the accounts of your organization.
  3. In Clients click Create client, choose Web application and name it Gebo.ai. The redirect address comes later.
  4. Click Create and copy the Client ID and the Client secret.
Google wants httpsGoogle accepts redirect addresses over https, with the only exception of localhost: Gebo.ai has to be reached over https.

2Open the single sign-on settings

In Setup open Security (1) and click Single signon, oauth2 authentication (2), then + Oauth2 config.

The Security tab of Setup.
The Security tab of Setup.

3Enter the client

A new configuration for Google. The secret is still to be entered.
A new configuration for Google. The secret is still to be entered.
  1. Description: the name on the login button, for example Google Workspace.
  2. Provider: Google auth provider.
  3. Configuration purpose: Authentication.
  4. Accepted audiences: only for tools that call the Gebo.ai API with tokens of this provider (page 28b). Enter the Client ID of item 5 to accept only tokens meant for Gebo.ai; empty, any token this provider signed is accepted. Signing in with the button does not depend on it.
  5. Client ID: the identifier the provider gave Gebo.ai.
  6. Secret key: the client secret the provider gave Gebo.ai.
  7. Click Save.

4Give the provider the redirect address

Save closes the dialog. Click Modify next to the new configuration: Gebo.ai has given it a Code (2) and lists the addresses to enable at the provider. The redirect address to register is the one ending in /login/oauth2/code/ followed by the code (1).

The saved configuration: its redirect address (1) and its code (2).
The saved configuration: its redirect address (1) and its code (2).

In the Google Cloud console open the client, add the address under Authorized redirect URIs and click Save.

Open Gebo.ai at its real address firstThe addresses are built from the address your browser has Gebo.ai open at. Open Gebo.ai at the address your users use, for example https://gebo.company.com, before copying it: an address with localhost works only on the server itself.

5Let people in

The login page now shows a button with the Description of the configuration.

The Google Workspace button on the login page.
The Google Workspace button on the login page.

By default Gebo.ai lets in the people an administrator has created: for each of them create a user whose Username is their Google e-mail address and whose Authentication provider is this provider, as described in page 29. To make every person the provider recognizes a user on their own, see page 28b.