Files
geointel/backend/app/schemas/auth.py
T
Codex 115f9850a7
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s
feat: add operator landing and login
2026-07-22 20:10:21 +02:00

24 lines
518 B
Python

from __future__ import annotations
from datetime import datetime
from pydantic import BaseModel, Field
from app.schemas.common import Envelope
class AuthLoginRequest(BaseModel):
username: str = Field(min_length=1, max_length=128)
password: str = Field(min_length=1, max_length=1024)
class AuthSession(BaseModel):
authentication_required: bool
authenticated: bool
username: str | None = None
expires_at: datetime | None = None
class AuthSessionEnvelope(Envelope[AuthSession]):
pass