Skip to content

Commit 1863456

Browse files
CCM-10922 fix header case
1 parent 6031e96 commit 1863456

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

infrastructure/terraform/components/api/resources/spec.tmpl.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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
}

lambdas/authorizer/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)