swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.13k stars 102 forks source link

Add Authorizer section to API Gateway Request #192

Closed audente closed 3 years ago

audente commented 3 years ago

Add Authorizer section to API Gateway Request

Motivation:

As discussed in issue #147, API Gateway is not decoding the Autorizer section.

That section is required when, for example, inside a Lambda function you need details about a user who is calling the function through a secured API Gateway.

Modifications:

Added an 'authorizer' key to APIGateway.Request. This key is an optional dictionary of string to string.

Result:

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

tomerd commented 3 years ago

@swift-server-bot test this please

tomerd commented 3 years ago

thanks @audente this looks good to me, but could you add or update the relevant unit test to test this (see APIGatewayTests)

fabianfett commented 3 years ago

@audente 👋 Ping: Are you still interested in getting this merged? I would love to see this land...

tomerd commented 3 years ago

@swift-server-bot test this please

fabianfett commented 3 years ago

Hi @audente, since the events have moved to a separate repository: Would you mind reopening your pr there? https://github.com/swift-server/swift-aws-lambda-events