Download app/schemas/auth.py from Modulo-6/api: direct link, hf CLI and curl.
- Browser
- Download file 374 Bytes
-
https://huggingface.co/spaces/Modulo-6/api/resolve/main/app/schemas/auth.py
- Command line
-
hf download hf://spaces/Modulo-6/api/app/schemas/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/Modulo-6/api/resolve/main/app/schemas/auth.py
374 Bytes
| from pydantic import BaseModel, Field | |
| class SSOExchangeRequest(BaseModel): | |
| ticket: str = Field(..., min_length=1) | |
| class SSOUser(BaseModel): | |
| id: int | |
| first_name: str | |
| last_name: str | |
| email: str | |
| class SSOExchangeResponse(BaseModel): | |
| token: str | |
| user: SSOUser | |
| rol: str | |
| class SSOTicketResponse(BaseModel): | |
| ticket: str | |
| expires_in: int | |