Aws lambda 使用Postman测试AWS Cognito登录

Aws lambda 使用Postman测试AWS Cognito登录,aws-lambda,aws-api-gateway,amazon-cognito,Aws Lambda,Aws Api Gateway,Amazon Cognito,我正在尝试测试我创建的Lambda函数,它位于Cognito登录之后 My Lambda函数要求设置cognitoIdentityId,以便识别用户 我一直在关注亚马逊文档中的内容。但是,本教程仅显示如何使用IAM凭据而不是Cognito用户凭据进行身份验证,这意味着cognitoIdentityId设置为null 如何将Cognito用户登录与Postman集成?您应该能够通过以下方式看到它: console.log(event.requestContext.identity.cognito

我正在尝试测试我创建的Lambda函数,它位于Cognito登录之后

My Lambda函数要求设置
cognitoIdentityId
,以便识别用户

我一直在关注亚马逊文档中的内容。但是,本教程仅显示如何使用IAM凭据而不是Cognito用户凭据进行身份验证,这意味着
cognitoIdentityId
设置为
null


如何将Cognito用户登录与Postman集成?

您应该能够通过以下方式看到它:

 console.log(event.requestContext.identity.cognitoIdentityId);

有人知道吗?被困在同一个问题上,你解决了吗?如果是,如何进行?