Gebo.ai setup guide · Security · Page 26
AWS Cognito
Your people sign in to Gebo.ai with the accounts of an Amazon Cognito user pool. Add Gebo.ai as an app client of the pool, then enter it in Setup.
- Time
- 15 minutes.
- You need
- An AWS account that can manage the user pool, a Cognito domain of the pool, and Gebo.ai open at the address your users use.
1Add Gebo.ai to the user pool
- In the AWS console open Amazon Cognito → User pools and the pool. Copy its User pool ID, for example
eu-west-1_AbCdEf123: the part before the underscore is the region. - In App clients click Create app client, choose Traditional web application, name it Gebo.ai and create it. Copy the Client ID and the Client secret.
- In Domain check the pool’s Cognito domain,
https://<prefix>.auth.<region>.amazoncognito.com: Gebo.ai needs only the prefix.
2Open the single sign-on settings
In Setup open Security (1) and click Single signon, oauth2 authentication (2), then + Oauth2 config.

3Enter the app client

- Description: the name on the login button, for example AWS Cognito.
- Provider: AWS Cognito Oauth2 provider.
- Configuration purpose: Authentication.
- 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.
- Client ID: the identifier the provider gave Gebo.ai.
- Secret key: the client secret the provider gave Gebo.ai.
- cognitoDomain: the prefix of the Cognito domain only, for example
gebo-company. - userPoolId: the User pool ID.
- region: the region of the pool, for example
eu-west-1. - 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).

In Cognito open the app client, edit its Login pages: paste the address among the Allowed callback URLs, keep the Authorization code grant and the OpenID, Email and Profile scopes, and save.
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.

By default Gebo.ai lets in the people an administrator has created: for each of them create a user whose Username is their e-mail address in the user pool 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.