feat: oidc claims response model
This commit is contained in:
parent
26db93b769
commit
34413b3fc5
1 changed files with 25 additions and 0 deletions
|
|
@ -8,6 +8,31 @@ Models:
|
||||||
from src.schemas import CustomBaseModel
|
from src.schemas import CustomBaseModel
|
||||||
|
|
||||||
|
|
||||||
|
class OIDCClaims(CustomBaseModel):
|
||||||
|
exp: int
|
||||||
|
iat: int
|
||||||
|
auth_time: int
|
||||||
|
jti: str
|
||||||
|
iss: str
|
||||||
|
aud: str
|
||||||
|
sub: str
|
||||||
|
typ: str
|
||||||
|
azp: str
|
||||||
|
sid: str
|
||||||
|
acr: str
|
||||||
|
allowed_origins: list[str]
|
||||||
|
realm_access: dict[str, list[str]]
|
||||||
|
resource_access: dict[str, dict[str, list[str]]]
|
||||||
|
scope: str
|
||||||
|
email_verified: bool
|
||||||
|
name: str
|
||||||
|
preferred_username: str
|
||||||
|
given_name: str
|
||||||
|
family_name: str
|
||||||
|
email: str
|
||||||
|
db_id: int
|
||||||
|
|
||||||
|
|
||||||
class OIDCUser(CustomBaseModel):
|
class OIDCUser(CustomBaseModel):
|
||||||
first_name: str
|
first_name: str
|
||||||
last_name: str
|
last_name: str
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue