Skip to content

Commit

Permalink
fix: add missing properties in default velocity template
Browse files Browse the repository at this point in the history
  • Loading branch information
frsechet authored and dnalborczyk committed Sep 11, 2019
1 parent 53d920e commit cfe1d54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/offline-default.req.vm
Expand Up @@ -11,6 +11,10 @@
"body": $input.json("$"),
"method": "$context.httpMethod",
"principalId": "$context.authorizer.principalId",
"stage": "$context.stage",
"cognitoPoolClaims" : {
"sub": "$context.authorizer.claims.sub"
},
#set( $map = $context.authorizer )
## see https://github.com/serverless/serverless/issues/4374
"enhancedAuthContext": {
Expand All @@ -35,5 +39,6 @@
#set( $map = $context.identity )
"identity": $loop,
#set( $map = $stageVariables )
"stageVariables": $loop
"stageVariables": $loop,
"requestPath": "$context.resourcePath"
}

0 comments on commit cfe1d54

Please sign in to comment.