auth and token middleware context update
This commit is contained in:
18
ApiLayers/ApiValidations/Custom/wrapper_contexts.py
Normal file
18
ApiLayers/ApiValidations/Custom/wrapper_contexts.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import Optional, Any
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class DefaultContext(BaseModel):
|
||||
...
|
||||
|
||||
|
||||
class EventContext(DefaultContext):
|
||||
|
||||
auth: Any
|
||||
code: str
|
||||
url: str
|
||||
|
||||
|
||||
class AuthContext(DefaultContext):
|
||||
auth: Any
|
||||
url: str
|
||||
Reference in New Issue
Block a user