Last updated
AWS Cognito
Prerequisites
- AWS account with appropriate IAM permissions
- Cognito User Pool created
Configuration Steps
Step 1: Access Cognito User Pool
- Open AWS Console → Search for Cognito
- Select User Pools from the left sidebar
- Click on your User Pool name
Step 2: Select or Create App Client
- In User Pool details, navigate to App integration tab
- Scroll to App clients and analytics section
- If you have an existing app client: Click on it to open settings, then skip to Step 3
- If creating new: Click Create app client
- App type: Select
Confidential client - App client name: Enter "Frontegg AgentLink"
- Client secret: Select
Generate a client secret - In Authentication flows section, enable:
- ALLOW_REFRESH_TOKEN_AUTH
- ALLOW_USER_SRP_AUTH
- Click Create app client
- From App integration tab, scroll to App clients list
- Click on your app client name
- Click Edit in Hosted UI settings section
- Configure callback URLs (add to existing or create new):
- Allowed callback URLs:
https://[YOUR-FRONTEGG-DOMAIN]/oauth/callback
- Allowed sign-out URLs: (optional)
https://[YOUR-FRONTEGG-DOMAIN]/logout
- Configure OAuth 2.0 grants:
- Allowed OAuth Flows:
- Allowed OAuth Scopes:
- Click Save changes
Step 4: Obtain Credentials
- In app client details page, locate Client ID in App client information section
- Copy Client ID:
[alphanumeric-string] - Click Show client secret and copy Client Secret
- Navigate back to User Pool details, note the User Pool ID from the overview
- Note your AWS Region (visible in User Pool ARN)
Configuration Values for Frontegg
provider: cognito
issuer_url: https://cognito-idp.[region].amazonaws.com/[user-pool-id]
client_id: [from App Client]
client_secret: [from App Client]