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 réponse
0
Réponse acceptée

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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions