mod access_control;
mod audit;
mod audit_pseudonyms;
mod broker;
mod error;
mod middleware;
mod permission;
mod role;
pub mod scope;
pub mod visitor;
#[cfg(feature = "auth-bridge")]
pub mod auth_bridge;
#[cfg(any(feature = "sso", feature = "token-exchange"))]
mod http;
#[cfg(feature = "sso")]
pub mod sso;
pub mod secrets;
#[cfg(feature = "token-exchange")]
mod token_exchange;
#[cfg(feature = "otlp-audit")]
pub mod audit_otlp;
#[cfg(feature = "postgres-audit")]
pub mod audit_postgres;
#[cfg(feature = "agent-federation")]
pub mod federation;
#[cfg(feature = "signed-audit")]
pub mod signed_audit;
#[cfg(feature = "web-bot-auth")]
pub mod web_bot_auth;
pub use access_control::{AccessControl, AccessControlBuilder};
pub use audit::{
AuditEvent, AuditEventType, AuditFailureMode, AuditFilter, AuditOutcome, AuditSink,
FileAuditSink, InMemoryAuditSink,
};
pub use audit_pseudonyms::PseudonymousAuditSink;
pub use broker::SecretCredentialBroker;
pub use error::{AccessDenied, AuthError};
pub use middleware::{AuthMiddleware, ProtectedTool, ProtectedToolDyn, ToolExt};
pub use permission::Permission;
pub use role::Role;
pub use scope::{
ContextScopeResolver, ScopeDenied, ScopeGuard, ScopeResolver, ScopeToolExt, ScopedTool,
ScopedToolDyn, StaticScopeResolver, check_scopes,
};
pub use visitor::{VISITOR_COOKIE, VisitorTokens};
#[cfg(feature = "auth-bridge")]
pub use auth_bridge::{JwtRequestContextExtractor, JwtRequestContextExtractorBuilder};
#[cfg(feature = "token-exchange")]
pub use token_exchange::{SubjectToken, SubjectTokenSource, TokenExchangeBroker};
#[cfg(feature = "otlp-audit")]
pub use audit_otlp::OtlpAuditSink;
#[cfg(feature = "postgres-audit")]
pub use audit_postgres::PostgresAuditSink;