Skip to content

Commit 40cb311

Browse files
authored
adding auth for get calls (#58)
adding auth for get calls
2 parents 04003d5 + b2485e5 commit 40cb311

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

metering/serverless.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ functions:
8282
- http:
8383
path: /usage/freecalls
8484
method: get
85-
# authorizer:
86-
# name: user-authorizer
87-
# type: COGNITO_USER_POOLS
88-
# arn: ${file(./config.${self:provider.stage}.json):AUTHORIZER}
89-
# identitySource: method.request.header.Authorization
85+
authorizer:
86+
type: request
87+
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
88+
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
9089
cors:
9190
origin: ${self:custom.origin.${self:provider.stage}}
9291
headers:

0 commit comments

Comments
 (0)