2021年1月2日星期六

How to get the USER details from a call to HTTP API Gateway + Lambda that is authenticated with an Amazon Cognito User Pool

USER logs in in Amazon Cognito and the App/Web gets an "Access Token" that is used whenever it calls API Gateway (HTTP API or REST API).

The API Gateway is configured to use Cognito User Pool as Authorizer, so if the "Access Token" is valid the call can pass to Lambda.

So, how do I know (inside Lambda) who is the user doing the calls and what are his/her details?

https://stackoverflow.com/questions/65545529/how-to-get-the-user-details-from-a-call-to-http-api-gateway-lambda-that-is-aut January 03, 2021 at 08:28AM

没有评论:

发表评论