Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Revert "feat: remove unneeded scope checks in authorizer (#347)"
Browse files Browse the repository at this point in the history
This reverts commit e0e9364.
  • Loading branch information
carvantes committed Jun 14, 2021
1 parent e0e9364 commit d103ad0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,21 @@ functions:
authorizer:
type: COGNITO_USER_POOLS
authorizerId: !Ref ApiGatewayAuthorizer
scopes: # must have both scopes
- 'openid'
- 'profile'
- 'aws.cognito.signin.user.admin'
method: ANY
path: /
private: true
- http:
authorizer:
type: COGNITO_USER_POOLS
authorizerId: !Ref ApiGatewayAuthorizer
scopes: # must have both scopes
- 'openid'
- 'profile'
- 'aws.cognito.signin.user.admin'
method: ANY
path: '{proxy+}'
private: true
Expand Down

0 comments on commit d103ad0

Please sign in to comment.