In this recipe, we will use client-side authentication with the non-admin APIs. We will execute this recipe from the AWS CLI with username- and password-based authentication. In a real-world app based on iOS, Android, or JavaScript, you may use SRP instead of the password.
Implementing a client-side authentication flow
Getting ready
Create a user pool with a default configuration on the basis of the Creating Amazon Cognito user pools recipe. Steps to create a user pool from the CLI are provided with code files. I have created a user pool with default configurations and its ID is us-east-1_Q1cydt6I0. Replace it with your ID within the recipe.
We need an administrator user and should configure a profile in the AWS CLI for this...