Skip to content

Commit 3bd0a61

Browse files
committed
servereless changes in authorizer
1 parent d2f50af commit 3bd0a61

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

metering/serverless.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ functions:
5454
type: request
5555
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
5656
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
57-
name: verify_authorizer
58-
resultTtlInSeconds: 100
5957
cors:
6058
origin: ${self:custom.origin.${self:provider.stage}}
6159
headers:
@@ -84,12 +82,12 @@ functions:
8482
- http:
8583
path: /usage/freecalls
8684
method: get
87-
authorizer:
88-
type: request
89-
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
90-
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
91-
name: freecall_authorizer
92-
resultTtlInSeconds: 100
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}
89+
# name: freecall_authorizer
90+
# resultTtlInSeconds: 100
9391
cors:
9492
origin: ${self:custom.origin.${self:provider.stage}}
9593
headers:
@@ -117,12 +115,12 @@ functions:
117115
- http:
118116
path: /usage
119117
method: post
120-
authorizer:
121-
type: request
122-
arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
123-
identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
124-
name: usage_authorizer
125-
resultTtlInSeconds: 100
118+
# authorizer:
119+
# type: request
120+
# arn: ${file(./config.${self:provider.stage}.json):SIGN_AUTHORIZER}
121+
# identitySource: ${file(./config.${self:provider.stage}.json):SIGN_HEADERS}
122+
# name: usage_authorizer
123+
# resultTtlInSeconds: 100
126124
cors:
127125
origin: ${self:custom.origin.${self:provider.stage}}
128126
headers:

0 commit comments

Comments
 (0)