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 Answer
0
Accepted Answer

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
EXPERT
Uri
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions