Skip to main content

klieo_auth_common/
lib.rs

1#![deny(missing_docs)]
2#![deny(rust_2018_idioms)]
3#![deny(rustdoc::broken_intra_doc_links)]
4
5//! Shared authentication primitives for klieo HTTP transports.
6//!
7//! [`Authenticator`] is the server-side auth port. Both `klieo-a2a` and
8//! `klieo-mcp-server` consume it via `Arc<dyn Authenticator>`. Concrete
9//! implementations live in `klieo-auth-oauth` (JWT/JWKS) and here
10//! ([`AllowAnonymous`], [`BearerTokenAuthenticator`]).
11
12mod authenticator;
13mod error;
14mod headers;
15mod identity;
16mod impls;
17
18pub use authenticator::Authenticator;
19pub use error::AuthError;
20pub use headers::Headers;
21pub use identity::{Identity, ScopeSet};
22pub use impls::{BearerTokenAuthenticator, BearerVerifier};
23
24#[cfg(any(feature = "test-fixtures", test))]
25pub use impls::AllowAnonymous;