Setup Guide for AWS Cognito App

Step 1: Setup AWS Cognito as OAuth Provider

  • Sign in to AWS Amazon.
  • Now enter “Cognito” in search textbox & select Cognito from dropdown.
  • aws-1
  • Go to “Manage your user pools”
  • aws-2
  • Click on “Create a user pool”
  • aws-3
  • Add pool name and select “Review Defaults”.
  • aws-4
  • Click on “Add app client” & then click on Add an app client
  • aws-5
  • Enter App client name & then Click on “Create app client”.
  • aws-6
  • Click on Return to pool details. After this click on “Create Pool”.
  • Navigate to App client settings.
    • Select “Cognito User Pool”, add callback URL. You will get this callback URL from the plugin.
    • Add application home page URL has to Sign out URL.
    • Also, select Authorization code grant as “Allowed OAuth Flows” & select OpenID as “Allowed OAuth Scopes”.
    • After selecting all details click on Save changes button.
    • aws-7
  • Go to “App client” and click on “Show details” to get a client ID and client secret.
  • aws-8
  • Go to domain name and enter a domain name for your app. After adding domain name you can check its availability by clicking on “Check availability” button. After entering valid domain name click ”Save changes” button.
  • aws-domain
  • Complete domain name: The complete domain name that you need to enter in plugin is {your domain name}.auth.{region name}.amazoncognito.com
  • Add Users / Groups to Cognito App : Go to Users and groups and then click on Users. After this click on Create user.
  • aws-10
  • Fill all required informations and click on Create user.
  • aws-11
  • Click on Groups and then click on Create group.
  • aws-12
  • Fill all required informations and click on Create group.
  • aws-13