ACPex.Schema.Connection.AuthenticateRequest (ACPex v0.1.0)

View Source

Request to authenticate with the agent.

Sent by the client if the agent requires authentication (as indicated by auth_methods in the InitializeResponse).

Required Fields

  • method_id - The ID of the authentication method to use (string)

Optional Fields

  • meta - Additional metadata (map)

Example

%ACPex.Schema.Connection.AuthenticateRequest{
  method_id: "api_key"
}

JSON Representation

{
  "methodId": "api_key"
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Connection.AuthenticateRequest{
  meta: map() | nil,
  method_id: String.t()
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Required Fields

  • method_id - Must be present