Overview
This guide will walk you through configuring OpenID Connect authentication with Amazon Cognito for Discngine Admin Center. Once completed, users will be able to log in using their Cognito credentials.
Note: These instructions are for the new Cognito interface. Make sure you are using the "new console" user interface option.
Prerequisites
Before configuring Cognito OpenID Connect, ensure you have:
- Organisation Administrator access to Discngine Admin Center
- Access to an AWS Account
- Permissions to create and configure Cognito user pools
Register a Cognito User Pool
Step 1: Access AWS Cognito
- Log in to the AWS Management Console
- Search for "Cognito" in the main search field
- Select the Cognito service
- Choose the AWS region where you want to create your user pool
Step 2: Create User Pool
- Click Create a user pool
- Step 1 - Sign-in Options: Select your preferred sign-in options (e.g., Email)
- Step 2 - Security Requirements: Configure password requirements and MFA settings
- Step 3 - Sign-up Experience: Configure user attributes and verification
- Step 4 - Message Delivery: Configure email and SMS settings
Step 3: Configure Pool Settings
- Step 5 - Integrate Your App:
- Give the user pool a name (e.g., "Discngine Users")
- Ensure the checkbox to use hosted authentication pages is checked
- Choose a domain for the user pool (e.g.,
yourcompany-discngine)
Step 4: Create App Client
Under Initial app client on Step 5:
- Set the app type to
Confidential - Give the client a name (e.g., "Discngine Admin Center Client")
- Set the Callback URL to:
https://account.discngine.cloud/oauth2/callback
Advanced app client settings:
4. Under Authentication flows, ensure ALLOW_USER_PASSWORD_AUTH is selected
5. Under OAuth 2.0 grant types, select Authorization code grant
6. Under OpenID Connect scopes, select OpenID
7. Check the box for your app name under Identity Providers
Step 5: Review and Create
- Review all configuration settings
- Click Create user pool
- Once created, click on the user pool's name
- Scroll to the App clients and analytics section
- Open the created app client
- Record both the Client ID and Client Secret (click "Show client secret" to reveal)
Step 6: Note the User Pool Details
- In your user pool details, record the User Pool ID (e.g.,
us-east-2_abc123) - Note your AWS Region code (e.g.,
us-east-2)

Adding Users to Cognito
Create a Test User
- Open your user pool
- Navigate to the Users tab
- Click Create user
- Fill out all required form fields (username, email, temporary password)
- Click Create user
Configure OpenID Connect in Discngine Admin Center
Step 1: Access Identity Providers
- Log in to Discngine Admin Center as an Organisation Administrator.
- Navigate to Identity Providers in the left sidebar or via the Identity Providers card on the home page.
- Click New Provider and set Provider Type to OpenID Connect with Issuer URL.

Step 2: Configure Provider Settings
The OpenID Connect form is simplified — you only need the following fields:
- Name:
Amazon Cognito - Issuer URL: the OIDC issuer for your user pool (endpoint discovery happens automatically from this URL). Use the following format:
https://cognito-idp.<REGION>.amazonaws.com/<USER_POOL_ID>/- Replace
<REGION>with your AWS region code (e.g.,us-east-2) - Replace
<USER_POOL_ID>with your Cognito User Pool ID (e.g.,us-east-2_abc123) - Example:
https://cognito-idp.us-east-2.amazonaws.com/us-east-2_abc123/
- Replace
- Client ID: the App Client ID from Cognito
- Client Secret: the Client Secret from Cognito
Click Save.
Note: Cognito users must have a public email address configured for sign-in to work.
Step 3: Enable for Applications
By default, the new provider is not enabled for any application.
- Open the provider from the Identity Providers page and switch to the Application Registration tab.
- Your applications are listed grouped by environment. Turn the Enabled toggle on for each application that should use this provider.
- Click Save.
For more details on assigning providers to applications, see How to Manage Identity Providers.
Testing the Configuration
Step 1: Access Login Page
Navigate to https://admin-<organisation-name>.discngine.cloud/
Step 2: Test Login
- Enter your email address
- You should see the Login with Cognito button
- Click the button
- You will be redirected to the Cognito hosted UI login page
- Enter your Cognito credentials
- If this is a first login with a temporary password, you'll be prompted to set a new password
- After successful authentication, you'll be redirected back to Discngine Admin Center

Troubleshooting
Common Issues
Redirect URI Mismatch
- Ensure the callback URL in Cognito exactly matches:
https://account.discngine.cloud/oauth2/callback - Check that there are no trailing slashes
Issuer URL Format
- Verify the Issuer URL follows the exact format with the trailing slash
- Ensure the region code and User Pool ID are correct
- Example:
https://cognito-idp.us-east-2.amazonaws.com/us-east-2_abc123/
Email Address Issues
- Cognito users must have a public email address, as sign-in matches users on their email address
- Verify email verification settings in your Cognito user pool
User Pool Domain
- Ensure your user pool has a hosted UI domain configured
- The domain must be set up before the authentication flow will work
Authentication Flow Not Enabled
- Verify that
ALLOW_USER_PASSWORD_AUTHis enabled in the app client settings
Invalid Client Secret
- Double-check that you copied the Client Secret correctly
- Client secrets are only shown once; if lost, you'll need to generate a new one
Additional Resources
- Getting Started with Cognito User Pools
- Cognito - Configuring a User Pool App Client
- AWS Cognito Documentation