feat: user dependencies
In addition to the by-query and by-body db fetch dependencies. Users also have a by-claim dependency. Issue #6
This commit is contained in:
parent
657f91d73d
commit
748544fb82
3 changed files with 59 additions and 27 deletions
|
|
@ -9,6 +9,10 @@ from typing import Optional
|
|||
from src.schemas import CustomBaseModel
|
||||
|
||||
|
||||
class UserIDMixin(CustomBaseModel):
|
||||
user_id: int
|
||||
|
||||
|
||||
class OIDCClaims(CustomBaseModel):
|
||||
exp: int
|
||||
iat: int
|
||||
|
|
@ -52,3 +56,7 @@ class UserResponse(CustomBaseModel):
|
|||
class OrgResponse(CustomBaseModel):
|
||||
org_id: int
|
||||
name: str
|
||||
|
||||
|
||||
class UserDeleteUserRequest(UserIDMixin):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue