-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(event-sources): Pass authorizer data to APIGatewayEventAuthorizer #897
Conversation
Changes: - contract APIGatewayEventAuthorizer from the authorizer data - add test cases for the additional fields that can optional be in the authorizer dict - Update DictWrapper to allow for a default in `get`
Codecov Report
@@ Coverage Diff @@
## develop #897 +/- ##
========================================
Coverage 99.88% 99.88%
========================================
Files 118 118
Lines 5133 5133
Branches 573 573
========================================
Hits 5127 5127
Misses 2 2
Partials 4 4
Continue to review full report at Codecov.
|
@@ -56,7 +67,7 @@ def route_key(self) -> Optional[str]: | |||
|
|||
@property | |||
def authorizer(self) -> APIGatewayEventAuthorizer: | |||
return APIGatewayEventAuthorizer(self._data) | |||
return APIGatewayEventAuthorizer(self._data["requestContext"]["authorizer"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!!!!
…tools-python into feat/batch-new-processor * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: fix(parser): kinesis sequence number is str, not int (aws-powertools#907) feat(apigateway): add exception_handler support (aws-powertools#898) fix(event-sources): Pass authorizer data to APIGatewayEventAuthorizer (aws-powertools#897) chore(deps): bump fastjsonschema from 2.15.1 to 2.15.2 (aws-powertools#891)
Issue #, if available:
Description of changes:
Changes:
get
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.