Serverless-offline: AUTHORIZER env variable does not work for lambda integrations

Created on 25 Sep 2019  路  4Comments  路  Source: dherault/serverless-offline

https://github.com/dherault/serverless-offline/blob/4591e0283c30a0fe4f1c3a17428ad17232432daf/src/events/http/lambda-events/LambdaProxyIntegrationEvent.js#L38-L46

The AUTHORIZER env variable is used in lambda-proxy integrations but not in lambda integrations.

It's not implemented for it, and should be added in: /src/events/http/lambda-events/VelocityContext.js

bug has PR

All 4 comments

@dnalborczyk You guys are still accepting PRs for v5 and v6, right?

thanks @jormaechea !

You guys are still accepting PRs for v5 and v6, right?

yeah, absolutely!

_update_: just as a note, the env handling has slightly changed in v6, depending on in which mode you run: in-process, worker-thread or child-process. but don't worry about it for the PR.

@dnalborczyk Great! Both PRs are ready.. I had them almost ready, I've been fighting with authorizers all day :rofl:

@jormaechea thank you again! I pulled in the PR for v5, looking over the v6 PR later today!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FranzSkuffka picture FranzSkuffka  路  3Comments

ktwbc picture ktwbc  路  4Comments

adambiggs picture adambiggs  路  4Comments

aldofunes picture aldofunes  路  3Comments

balintpeak picture balintpeak  路  4Comments