Apigateway Websocket - how to pass identity id to any routes when using IAM authorizer ?

0

In websocket api, when using IAM authorizer in $connect route with cognito identity pool, is there any way to get context variable information of identity id in other routes?

I thought I could certainly see identity id in other routes(lambda integration), but there were only source ip context information.

How can I know identity id(authenticated in $connect route) in other routes?

1 回答
0
已接受的回答

The identity information is only used at the $connect route. You will need to use a database, such as DynamoDB, to store the connection ID with any additional data you may need and use that in the other router.

profile pictureAWS
专家
Uri
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则