serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

Offline doesn't fail with nested authorizer context while API Gateway does

Open nat-e opened this issue 8 years ago • 2 comments

When using a custom lambda authorizer which returns a policy looking like this { ... "context": { "a": ["hello"] } }

Offline doesn't fail and passes the context to the lambda in event.requestContext.authorizer, but deploying this code to API Gateway will fail with a 500.

nat-e avatar Nov 22 '18 11:11 nat-e

Hi @nbarraille, can you PR a fix please ?

dherault avatar Nov 26 '18 08:11 dherault

closing for inactivity. feel free to re-open if this is still an issue.

dnalborczyk avatar Sep 12 '19 14:09 dnalborczyk