Jun 8, 2021

5 min read

Securing API Gateway using AWS Cognito.

Cognito User Pool

Start with AWS Cognito User Pool:

  1. url = {domain url generated by cognito}/oauth2/token
  2. grant_type = client_credentials
  3. client_id ={app client id generated by Cognito}
  4. client_secret ={app client secret generated by Cognito}
  5. scope ={name of Cognito app}/{name of scope}
  6. method = POST