a2a-rs 0.4.0

Rust implementation of the Agent-to-Agent (A2A) Protocol
Documentation
//! Authentication adapter implementations

#[cfg(feature = "http-server")]
pub mod authenticator;

#[cfg(feature = "auth")]
pub mod jwt;

#[cfg(feature = "auth")]
pub mod oauth2;

// Re-export authentication types
#[cfg(feature = "http-server")]
pub use authenticator::{
    ApiKeyAuthenticator, ApiKeyExtractor, BearerTokenAuthenticator, BearerTokenExtractor,
    NoopAuthenticator,
};

#[cfg(feature = "auth")]
pub use jwt::{JwtAuthenticator, JwtExtractor};

#[cfg(feature = "auth")]
pub use oauth2::{OAuth2Authenticator, OAuth2Extractor, OpenIdConnectAuthenticator};

#[cfg(feature = "http-server")]
pub use authenticator::with_auth;