← Về thư mục
openai4s/server/team_auth.py
- TeamIdentity · class · L42-L52 — class TeamIdentity
- is_admin · method · L51-L52 — def is_admin(self) -> bool
- RateLimited · class · L63-L64 — class RateLimited(Exception)
- TeamAuthService · class · L67-L180 — class TeamAuthService
- init · method · L70-L87 — def init( self, store: Any, *, clock: Callable[[], float] = time.monotonic, secure_cookie: bool = False, )
- _take_login_token · method · L91-L116 — def _take_login_token(self, username: str, ip: str) -> bool
- login · method · L120-L150 — def login(self, username: str, password: str, ip: str) -> tuple[str, dict] | None
- logout · method · L152-L159 — def logout(self, token: str | None) -> bool
- resolve · method · L161-L168 — def resolve(self, token: str | None) -> TeamIdentity | None
- cookie_header · method · L170-L176 — def cookie_header(self, token: str) -> str
- clear_cookie_header · method · L178-L180 — def clear_cookie_header(self) -> str
- public_user · function · L183-L190 — def public_user(user: dict) -> dict