feat(sso): update User model and schemas for Keycloak

This commit is contained in:
2026-03-01 00:50:44 +01:00
parent 95fbe99b61
commit f28240c37f
2 changed files with 3 additions and 13 deletions

View File

@@ -1,15 +1,9 @@
from datetime import datetime
from typing import Optional
from pydantic import BaseModel, EmailStr
from pydantic import BaseModel
# --- Auth ---
class UserCreate(BaseModel):
username: str
email: EmailStr
password: str
class UserOut(BaseModel):
id: int
username: str
@@ -19,11 +13,6 @@ class UserOut(BaseModel):
model_config = {"from_attributes": True}
class LoginRequest(BaseModel):
username: str
password: str
# --- Config ---
class ConfigCreate(BaseModel):
name: str