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 Resposta
0
Resposta aceita

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
ESPECIALISTA
Uri
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas