使用Cognito凭据从浏览器调用我的API终端节点不会向发出请求的用户提供lambda功能。使用Cognito凭据从API网关调用Lambda获取用户
我使用AWS_IAM AUTH端点
这是请求的样子在我的拉姆达:
module.exports.addItem = (event, context, done) => { console.log(event.identity); /** accountId: "", apiKey: "", caller: "", cognitoAuthenticationProvider: "", cognitoAuthenticationType: "", cognitoIdentityId: "", cognitoIdentityPoolId: "", sourceIp: "213.229.49.108", user: "", userAgent: "Mozilla/5.0 (X11; Linux x86_6....", userArn: "" */ };
我想执行一些dynamodb操作的用户。我如何获得用户?