Skip to content

AuthMethodTerminal

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970858457056["common.AuthMethodTerminal"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970858457056
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Terminal authentication method.

Client runs the configured agent program as a separate interactive process for the user to authenticate.

Source code in src/aclientp/schema/common.py
class AuthMethodTerminal(AnnotatedObject):
    """Terminal authentication method.

    Client runs the configured agent program as a separate interactive process
    for the user to authenticate.
    """

    type: Literal["terminal"] = "terminal"
    """Discriminator field."""

    id: str
    """Unique identifier for this authentication method."""

    name: str
    """Human-readable name of the authentication method."""

    description: str | None = None
    """Optional description providing more details about this authentication method."""

    args: Sequence[str] = ()
    """Additional arguments to pass when running the agent binary for terminal auth."""

    env: dict[str, str] = Field(default_factory=dict)
    """Additional environment variables to set when running the agent binary for terminal auth."""

args class-attribute instance-attribute

args: Sequence[str] = ()

Additional arguments to pass when running the agent binary for terminal auth.

description class-attribute instance-attribute

description: str | None = None

Optional description providing more details about this authentication method.

env class-attribute instance-attribute

env: dict[str, str] = Field(default_factory=dict)

Additional environment variables to set when running the agent binary for terminal auth.

id instance-attribute

id: str

Unique identifier for this authentication method.

name instance-attribute

name: str

Human-readable name of the authentication method.

type class-attribute instance-attribute

type: Literal['terminal'] = 'terminal'

Discriminator field.

:fa-brands-github: Show source on GitHub