Skip to main content

AuthMetadata

Trait AuthMetadata 

Source
pub trait AuthMetadata: Send + Sync {
    // Required methods
    fn get_auth_entity(&self) -> String;
    fn get_auth_type(&self) -> AuthType;

    // Provided methods
    fn requires_auth(&self) -> bool { ... }
    fn get_auth_config(&self) -> HashMap<String, Value> { ... }
}
Expand description

Authentication metadata trait for tools

Required Methods§

Source

fn get_auth_entity(&self) -> String

Get the auth entity identifier (e.g., “google”, “twitter”, “api_key_service”)

Source

fn get_auth_type(&self) -> AuthType

Get the authentication type and configuration

Provided Methods§

Source

fn requires_auth(&self) -> bool

Check if authentication is required for this tool

Source

fn get_auth_config(&self) -> HashMap<String, Value>

Get additional authentication configuration

Implementors§