Skip to content

GatewayOAuthReadResponse

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  483851440["v2_protocol.GatewayOAuthReadResponse"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 483851440
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Current effective gateway policy and credential readiness; never contains credentials.

Source code in src/codexed/models/v2_protocol.py
class GatewayOAuthReadResponse(CodexBaseModel):
    """Current effective gateway policy and credential readiness; never contains credentials."""

    error: str | None = None
    provider_id: str
    provider_name: str
    required: bool
    """
    Whether the selected provider uses gateway OAuth, even when already signed in.
    """
    status: GatewayOAuthStatus | None = None
    """
    Null when the effective provider does not use gateway OAuth.
    """
    supports_device_auth: bool | None = False
    """
    Whether the administrator configured a device authorization endpoint.
    """

required instance-attribute

required: bool

Whether the selected provider uses gateway OAuth, even when already signed in.

status class-attribute instance-attribute

status: GatewayOAuthStatus | None = None

Null when the effective provider does not use gateway OAuth.

supports_device_auth class-attribute instance-attribute

supports_device_auth: bool | None = False

Whether the administrator configured a device authorization endpoint.

:fa-brands-github: Show source on GitHub