struct
ACP::Protocol::AuthenticateParams
- ACP::Protocol::AuthenticateParams
- Struct
- Value
- Object
Overview
Params for the authenticate method (Client → Agent).
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(method_id : String, credentials : JSON::Any | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#credentials : JSON::Any | Nil
Optional credentials or token data, depending on the auth method.
-
#credentials=(credentials : JSON::Any | Nil)
Optional credentials or token data, depending on the auth method.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#method_id : String
The authentication method ID to use (from the agent's authMethods list).
-
#method_id=(method_id : String)
The authentication method ID to use (from the agent's authMethods list).
Constructor Detail
def self.new(method_id : String, credentials : JSON::Any | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#
Instance Method Detail
def credentials : JSON::Any | Nil
#
Optional credentials or token data, depending on the auth method.
def credentials=(credentials : JSON::Any | Nil)
#
Optional credentials or token data, depending on the auth method.
def method_id=(method_id : String)
#
The authentication method ID to use (from the agent's authMethods list).