Call a REST API integrated with an Amazon Cognito user pool
To call a method with a user pool authorizer configured, the client must do the following:
-
Enable the user to sign up with the user pool.
-
Enable the user to sign in to the user pool.
-
Obtain an identity or access token of the signed-in user from the user pool.
-
Include the token in the
Authorization
header (or another header you specified when you created the authorizer).
You can use AWS Amplify to perform these tasks. See Integrating Amazon Cognito With Web and Mobile Apps for more information.
-
For Android, see Getting Started with Amplify for Android
. -
To use iOS see Getting started with Amplify for iOS
. -
To use JavaScript, see Getting Started with Amplify for Javascript
.