move seeds dir
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user