add session route

This commit is contained in:
2025-08-16 23:53:09 -03:00
parent a53f37393a
commit 21f6eb030f
21 changed files with 311 additions and 599 deletions

View File

@@ -14,7 +14,7 @@ Globals:
Architectures:
- x86_64
Layers:
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:91
- !Sub arn:aws:lambda:sa-east-1:336641857101:layer:layercake:92
Environment:
Variables:
TZ: America/Sao_Paulo
@@ -52,16 +52,10 @@ Resources:
- DynamoDBCrudPolicy:
TableName: !Ref OAuth2Table
Events:
Login:
Session:
Type: HttpApi
Properties:
Path: /login
Method: GET
ApiId: !Ref HttpApi
LoginPost:
Type: HttpApi
Properties:
Path: /login
Path: /session
Method: POST
ApiId: !Ref HttpApi
Authorize:
@@ -70,13 +64,13 @@ Resources:
Path: /authorize
Method: GET
ApiId: !Ref HttpApi
OpenidConfiguration:
OpenIDConfiguration:
Type: HttpApi
Properties:
Path: /.well-known/openid-configuration
Method: GET
ApiId: !Ref HttpApi
Jwks:
JWKS:
Type: HttpApi
Properties:
Path: /.well-known/jwks.json