move seeds dir

This commit is contained in:
2025-04-03 21:08:59 -03:00
parent 34085af4a8
commit 1358088a48
41 changed files with 1950 additions and 108 deletions

View File

@@ -24,6 +24,9 @@ class CognitoUser(User):
class AuthorizerMiddleware(BaseMiddlewareHandler):
"""This middleware extracts user authentication details from the Lambda authorizer context
and makes them available in the application context."""
def handler(
self,
app: APIGatewayHttpResolver,

View File

@@ -27,8 +27,7 @@ class Tenant(BaseModel):
class TenantMiddleware(BaseMiddlewareHandler):
"""
Middleware that associates a Tenant instance with the request context based on the authentication flow.
"""Middleware that associates a Tenant instance with the request context based on the authentication flow.
For API authentication (`AuthFlowType.API_AUTH`), it assigns tenant information directly from the authorizer context.
For user authentication (`AuthFlowType.USER_AUTH`), it gets the Tenant ID from the specified request header.