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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인