REST API for authentication with Cognito User Pool


Is there a REST API to authenticate with a Cognito User Pool - equivalent to what is described here via javascript etc.

1 Answer

Amazon Cognito provides InitiateAuth API which you can use for a client-side authentication flow like the example provided in the link you noted. However, please note that you can't sign in a user with a federated IdP with InitiateAuth. If you are looking to do a server-side authentication flow, take a look at AdminInitiateAuth. For further details, please take a look at Cognito authentication/user pool authentication flow documentation. An AWS CLI command example for InitiateAuth can be found here.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions