You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is using Cognito as JWT Authorizer with HTTP API currently supported by serverless-offline?
I'm trying to figure out if it's an issue in my config or something that this plugin currently doesn't support.
In Lambda, Amazon API Gateway REST API claims can be obtained from event.requestContext.authorizer.claims.
However, HTTP API (API Gateway v2) puts them into event.requestContext.authorizer.jwt.claims (one level deeper under jwt).
I send custom JWT tokens and I can see them getting parsed and set under authorizer.claims. But how can I set this authorizer.jwt property and put claims inside of it?
Sure I can use process.env.IS_OFFLINE and extract one or the other, but it just ain't pretty.
I've just hit this too. Lambda output gives the event.requestContext.authorizer.jwt.claims format. and offline gives event.requestContext.authorizer.claims
For context, im using:
"serverless": "^2.15.0",
"serverless-offline": "^6.8.0"
Is using Cognito as JWT Authorizer with HTTP API currently supported by serverless-offline?
I'm trying to figure out if it's an issue in my config or something that this plugin currently doesn't support.
In Lambda, Amazon API Gateway REST API claims can be obtained from
event.requestContext.authorizer.claims
.However, HTTP API (API Gateway v2) puts them into
event.requestContext.authorizer.jwt.claims
(one level deeper underjwt
).I send custom JWT tokens and I can see them getting parsed and set under
authorizer.claims
. But how can I set thisauthorizer.jwt
property and putclaims
inside of it?Sure I can use process.env.IS_OFFLINE and extract one or the other, but it just ain't pretty.
Enviroment: Lambda (Node.js)
The text was updated successfully, but these errors were encountered: