add auth middleware

This commit is contained in:
2025-03-25 15:07:49 -03:00
parent 317c79cee2
commit cd6fdd58ad
12 changed files with 176 additions and 36 deletions

View File

@@ -60,8 +60,7 @@ Resources:
EnableFunctionDefaultPermissions: true
EnableSimpleResponses: true
Identity:
Headers:
- Authorization
Headers: [Authorization]
HttpApiFunction:
Type: AWS::Serverless::Function
@@ -81,10 +80,10 @@ Resources:
Path: /{proxy+}
Method: ANY
ApiId: !Ref HttpApi
Swagger:
Lookup:
Type: HttpApi
Properties:
Path: /_swagger
Path: /lookup/{username}
Method: GET
ApiId: !Ref HttpApi
Auth: