Pydantic schemas for auth provider API responses and requests.
# Source: https://github.com/Soju06/codex-lb | License: MIT | Copyright 2025 Soju06
# Provided via justclaw.it.com; keep this notice with the code.
from __future__ import annotations
from datetime import datetime
from pydantic import ConfigDict, Field
from app.modules.shared.schemas import DashboardModel
class AuthProviderResponse(DashboardModel):
"""A provider row as the settings UI sees it; secrets are masked, never returned."""
id: str
kind: str
provider_key: str
label: str
enabled: bool
#: ``enabled`` and admitted by the current ``dashboard_auth_mode``.
active: bool
unknown_identity_role_id: str | None = None
no_match_role_id: str | None = None
link_by_email: bool
skip_role_sync: bool
idp_mfa_enforced: bool
#: Masked provide
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key