-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(event-sources): Pass authorizer data to APIGatewayEventAuthorizer
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`
- Loading branch information
Michael Brewer
committed
Dec 14, 2021
1 parent
8406c9b
commit 58e8f39
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"resource": "/trip", | ||
"path": "/trip", | ||
"httpMethod": "POST", | ||
"requestContext": { | ||
"requestId": "34972478-2843-4ced-a657-253108738274", | ||
"authorizer": { | ||
"user_id": "fake_username", | ||
"principalId": "fake", | ||
"integrationLatency": 451 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters