Skip to content

Commit

Permalink
fix: Custom Authorizer Lambda Request context missing accountId and a…
Browse files Browse the repository at this point in the history
…piId fields (#1640)
  • Loading branch information
rfranco authored Jan 9, 2024
1 parent 4fbb9bf commit 3a5fca9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/http/createAuthScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default function createAuthScheme(authorizerOptions, provider, lambda) {
pathParameters: nullIfEmpty(pathParams),
queryStringParameters: parseQueryStringParameters(url),
requestContext: {
...event.requestContext,
extendedRequestId: requestId,
httpMethod,
path: request.path,
Expand All @@ -145,6 +146,7 @@ export default function createAuthScheme(authorizerOptions, provider, lambda) {
rawPath: request.path,
rawQueryString: getRawQueryParams(url),
requestContext: {
...event.requestContext,
http: {
method: httpMethod,
path: resourcePath,
Expand Down

0 comments on commit 3a5fca9

Please sign in to comment.