Skip to content

Commit b87f75f

Browse files
masl2nhsd-david-wass
authored andcommitted
CCM-11171: auth lambda to use supplier-id header
1 parent 5903baf commit b87f75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"securitySchemes": {
44
"LambdaAuthorizer": {
55
"in": "header",
6-
"name": "Authorization",
6+
"name": "NHSD-Supplier-ID",
77
"type": "apiKey",
88
"x-amazon-apigateway-authorizer": {
99
"authorizerCredentials": "${APIG_EXECUTION_ROLE_ARN}",
1010
"authorizerResultTtlInSeconds": 0,
1111
"authorizerUri": "arn:aws:apigateway:${AWS_REGION}:lambda:path/2015-03-31/functions/${AUTHORIZER_LAMBDA_ARN}/invocations",
12-
"identitySource": "method.request.header.Authorization",
12+
"identitySource": "method.request.header.NHSD-Supplier-ID",
1313
"type": "request"
1414
},
1515
"x-amazon-apigateway-authtype": "custom"

0 commit comments

Comments
 (0)