Skip to content

Commit b546d95

Browse files
Lucas BeloLucas Belo
authored andcommitted
Cognito authentication
1 parent b25896d commit b546d95

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

services/tasks_api/serverless.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ functions:
4242
cors:
4343
origin: ${env:ALLOWED_ORIGINS}
4444
maxAge: 60
45+
authorizer:
46+
name: TasksAPIAuthorizer
47+
type: COGNITO_USER_POOLS
48+
arn:
49+
Fn::GetAtt:
50+
- CognitoUserPool
51+
- Arn
4552

4653

4754
custom:

0 commit comments

Comments
 (0)