Skip to main content

Overview

AWS Cognito SSO enables users to log in using credentials from an AWS Cognito User Pool through OAuth 2.0 and OpenID Connect (OIDC). Collate supports two client types for AWS Cognito:
  • Confidential: For web applications and backend services that can securely store a client secret. Use it for secure backend authentication with a client ID and client secret.
  • Public: For applications that can’t store a client secret.
Collate supports Single Sign-On (SSO) integration with various identity providers, enabling secure, centralized user authentication.

Configure AWS Cognito SSO

Complete the following steps to configure AWS Cognito SSO.
  1. Click the Profile icon and navigate to Settings > Single Sign-On. Single Sign-On page with the Choose Provider list
  2. Click AWS-Cognito. The AWS Cognito configuration page opens. Select AWS Cognito from the Choose Provider list
  3. Enter the configuration details. For more information, see Configuration Fields. AWS Cognito SSO configuration page
  4. Click Test Login and complete the sign-in. For more information, see Test Login.
  5. Click Save to finish the SSO configuration.
Saving a new SSO configuration signs you out and redirects you to the login page. Run Test Login and sign in successfully before you save. A configuration that can’t sign you in locks you out. If Test Login hasn’t passed, the form shows a warning with a Save anyway button.

Configuration Fields

This section lists the fields in the order they appear in the Collate SSO configuration form. Click Show Hint at the top of the form to display the field help beside the form.

Basic Configuration

Set the name that identifies this SSO configuration.

Client Configuration

Choose the client type and the sign-up behavior. When Client Type is Public, this card also shows Client ID and Callback URL. For more information, see Client-Specific Fields.

Authority

Enter the address of the provider’s authorization server.

Client-Specific Fields

The next fields depend on the Client Type you selected.

OIDC Configuration

Enter the OIDC client credentials and settings.Select Show advanced credential settings to display four more fields.

Identity Configuration

Map claims from the identity token, a JSON Web Token (JWT), to Collate user identities and team assignments.
Incorrect Jwt Principal Claims lock out all users, including admins. The default values (email, cognito:username, sub) work for most AWS Cognito configurations. The claims must exist in the tokens that AWS Cognito issues. Change them only if you have custom claim requirements.
  • Jwt Principal Claims: At least one claim must correspond to the user’s email address. Order matters. Common AWS Cognito claims are cognito:username, email, sub, and preferred_username.
  • Jwt Principal Claims Mapping: Any key other than email or username, such as name or firstName, makes the service fail on startup with a validation error. The mapping is rarely needed. The display name is derived automatically from the standard OIDC claims. To include given_name and family_name, make sure your Cognito User Pool adds them to the ID token.
  • Jwt Team Claim Mapping: The team must already exist in Collate and must be of type Group. Team names are case-sensitive. Custom attributes must have the custom: prefix, for example custom:department. For group-based teams, use cognito:groups, which requires User Pool groups.

Advanced Configuration

Set the redirect, session, and sign-in behavior.

Admins

Grant admin access to specific users.

Domain Configuration

Restrict which email domains can sign in, and set the email domain for bots.

Connection Configuration

Control how Collate connects to the provider and uses its roles. When you turn on Use Roles from Provider:
  • Roles must be in the AWS Cognito token and must match existing Collate role names.
  • Roles sync on every login, so a role change in AWS Cognito takes effect the next time the user signs in.
  • If the token omits the roles claim, Collate treats it as no roles. A fresh sign-in then removes the roles and administrator access that the provider no longer grants.
  • Roles from the provider can promote a user to Admin, but a sign-in never demotes an admin assigned through Admin Emails or Admin Principals.

Deprecated

These fields are deprecated. Use the replacements in the table.

Default OAuth Role

The last Advanced Configuration card in the form has one field.

Troubleshooting

If users are automatically logged out and unable to log in again due to a bad authentication configuration, you can reset the security setup using the following command:
After executing the command, restart the server. The authentication values from your YAML or Helm chart will then be reapplied on startup. The following tiles detail how to apply this configuration:

Docker Security

Configure Auth0 SSO to access the UI and APIs.

Bare Metal Security

Configure Azure SSO to access the UI and APIs.

Kubernetes Security

Configure a custom OIDC SSO to access the UI and APIs.

Google SSO

Configure Google SSO to access the UI and APIs.

Okta SSO

Configure Okta SSO to access the UI and APIs.

Amazon Cognito SSO

Configure Amazon Cognito SSO to access the UI and APIs.

SAML

Configure SAML SSO to access the UI and APIs.

LDAP

Configure LDAP SSO to access the UI and APIs.