Skip to content

AuthMethodTerminal

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970868401584["auth.AuthMethodTerminal"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970868401584
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Terminal-based authentication method.

The client runs the configured agent program as a separate interactive process, with args appended and env set, for the user to authenticate in a TUI. Requires the client's auth.terminal capability.

Source code in src/aclientp/schema/v2/auth.py
class AuthMethodTerminal(AnnotatedObject):
    """Terminal-based authentication method.

    The client runs the configured agent program as a separate interactive process, with
    ``args`` appended and ``env`` set, for the user to authenticate in a TUI. Requires the
    client's ``auth.terminal`` capability.
    """

    type: Literal["terminal"] = Field(default="terminal", init=False)

    method_id: AuthMethodId
    """Unique identifier for this authentication method."""

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

    description: str | MISSING | None = MISSING
    """Optional human-readable description of this authentication method."""

    args: Sequence[str] | MISSING = MISSING
    """Additional arguments to append to the configured agent invocation for terminal auth."""

    env: Sequence[EnvVariable] | MISSING = MISSING
    """Additional environment variables to set on the configured agent invocation for terminal
    auth. Names MUST be unique. These values override same-named variables in the base launch
    configuration."""

args class-attribute instance-attribute

args: Sequence[str] | MISSING = MISSING

Additional arguments to append to the configured agent invocation for terminal auth.

description class-attribute instance-attribute

description: str | MISSING | None = MISSING

Optional human-readable description of this authentication method.

env class-attribute instance-attribute

env: Sequence[EnvVariable] | MISSING = MISSING

Additional environment variables to set on the configured agent invocation for terminal auth. Names MUST be unique. These values override same-named variables in the base launch configuration.

method_id instance-attribute

method_id: AuthMethodId

Unique identifier for this authentication method.

name instance-attribute

name: str

Human-readable name of the authentication method.

:fa-brands-github: Show source on GitHub