sam-goodwin / punchcard

Type-safe AWS infrastructure.
Apache License 2.0
507 stars 20 forks source link

Request: Lambda authorizers #58

Open pocesar opened 4 years ago

pocesar commented 4 years ago

Lambda authorizers are clunky and needs a lot of boilerplate, would be a very good candidate for a higher level abstraction, providing some common strategies, like plain JWT as bearer or making use of Cognito

sam-goodwin commented 4 years ago

Totally needed - it should be as simple as implementing a base class or just including a default implementation.

How much can we configure with API GW in CFN?

AppSync (graphql) exposes annotations on methods which should be very simple to generate from an in-code representation with decorators.