apigatewayv2 websocket- put authorizer context variable in $connect route when using IAM authorizer

0

Hello, I'm trying to use apigatewayv2 websocket.

Is there a way to save context variables at route:$connect when using Iam authorizer? My purpose is verify context variables in $connect route and continue using these variables in any other routes. (To restrict important variables like identityId...)

I know I could do this when using lambda authorizer, with lambda output {context: <any>}. But when I'm trying to use Iam authorizer, I could not find how to do it.

已提問 1 年前檢視次數 114 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南