File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
infrastructure/terraform/components/api/resources Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1111 "authorizerUri" : " arn:aws:apigateway:${AWS_REGION}:lambda:path/2015-03-31/functions/${AUTHORIZER_LAMBDA_ARN}/invocations" ,
1212 "authorizerCredentials" : " ${APIG_EXECUTION_ROLE_ARN}" ,
1313 "identitySource" : " method.request.header.Authorization" ,
14- "authorizerResultTtlInSeconds" : 300
14+ "authorizerResultTtlInSeconds" : 0
1515 }
1616 }
1717 }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export const handler = (
3737 // Perform authorization to return the Allow policy for correct parameters and
3838 // the 'Unauthorized' error, otherwise.
3939 if (
40- headers [ 'HeaderAuth1 ' ] === 'headerValue1 '
40+ headers [ 'headerauth1 ' ] === 'headervalue1 '
4141 ) {
4242 callback ( null , generateAllow ( 'me' , event . methodArn ) ) ;
4343 } else {
You can’t perform that action at this time.
0 commit comments