How to get the Cognito Identity id in AWS Lambda

后端 未结 7 1205
[愿得一人]
[愿得一人] 2020-12-28 15:46

How can I get the identity id of the user (logged in by AWS Cognito) that invoked an AWS Lambda function? Do I have to use the SDK on the Lambda function to get the identity

相关标签:
7条回答
  • 2020-12-28 16:39

    If you go through API Gateway, you can pass the cognito id (as well as the user arn and other useful information) to Lambda. This solved the issue for me.

    http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html

    0 讨论(0)
提交回复
热议问题