Adding a domain name for your user pool - Amazon Cognito

Adding a domain name for your user pool

On the App integration tab, create an Amazon-owned prefix domain or use a custom domain for your user pool. The prefix domain for your app is https://<domain_prefix>.auth.<region>.amazoncognito.com.

The full URL for your app looks like this example:

https://example.auth.us-east-1.amazoncognito.com/login?redirect_uri=https://www.google.com&response_type=code&client_id=<client_id_value>

For more information, see Configuring a user pool domain.

Important

Before you can access the hosted UI for your app, you must specify app client settings such as callback and redirect URLs. For more information, see Configuring a user pool app client.

Configure a domain
  1. Navigate to the App integration tab for your user pool.

  2. Next to Domain, choose Actions and select either Create custom domain or Create Cognito domain. If you have already configured a user pool domain, choose Delete Cognito domain or Delete custom domain before creating your new custom domain.

  3. Enter an available domain prefix to use with a Cognito domain. Your prefix can't contain the strings aws, amazon, or cognito. For information on setting up a Custom domain, see Using your own Domain for the hosted UI

  4. Choose Create.