properly use OIDC security parameters like nonce and state
This commit is contained in:
parent
7fa9867a38
commit
801edc4042
2 changed files with 53 additions and 20 deletions
11
api/src/dooris_api/models.py
Normal file
11
api/src/dooris_api/models.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from typing import Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
class UserInfo(BaseModel):
|
||||
name: str
|
||||
|
||||
|
||||
class UserStatus(BaseModel):
|
||||
is_logged_in: bool
|
||||
user_info: Optional[UserInfo]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue