klieo-auth-common 2.2.0

Shared authentication traits and types for klieo HTTP transports
Documentation
#![deny(missing_docs)]
#![deny(rust_2018_idioms)]
#![deny(rustdoc::broken_intra_doc_links)]

//! Shared authentication primitives for klieo HTTP transports.
//!
//! [`Authenticator`] is the server-side auth port. Both `klieo-a2a` and
//! `klieo-mcp-server` consume it via `Arc<dyn Authenticator>`. Concrete
//! implementations live in `klieo-auth-oauth` (JWT/JWKS) and here
//! ([`AllowAnonymous`], [`BearerTokenAuthenticator`]).

mod authenticator;
mod error;
mod headers;
mod identity;
mod impls;

pub use authenticator::Authenticator;
pub use error::AuthError;
pub use headers::Headers;
pub use identity::{Identity, ScopeSet};
pub use impls::{BearerTokenAuthenticator, BearerVerifier};

#[cfg(any(feature = "test-fixtures", test))]
pub use impls::AllowAnonymous;