mod audit;
pub mod backend;
pub mod backends;
mod chain;
mod context;
mod error;
mod extractors;
mod identity;
mod middleware;
mod policy;
pub use audit::{
AuditLogger, AuditLoggerHandle, AuthAuditEvent, AuthAuditOutcome, IntoAuditLoggerHandle,
TracingAuditLogger,
};
pub use backend::{AuthBackend, AuthBackendHandle, BoxAuthBackend};
pub use backends::basic_auth::BasicAuthBackend;
pub use backends::jwt::{JwtBackend, JwtBackendBuilder};
pub use backends::static_bearer::StaticBearerBackend;
pub use chain::{AuthChain, UnauthenticatedPolicy};
pub use context::{AuthContext, AuthResult, FailedReason};
pub use error::AuthError;
pub use extractors::{
AuthRequired, Authenticated, AuthorizationRequired, CurrentUser, OptionalIdentity,
RequireScope, RequiredScope, ServiceAccount, SuperuserOnly,
};
pub use identity::{Identity, IdentityBuilder};
pub use middleware::{AuthMiddlewareState, auth_middleware};
pub use policy::{AuthzContext, AuthzDecision, AuthzPolicy, ScopeMatchMode, ScopePolicy};
pub use rusty_gasket::BoxError;
pub mod prelude {
pub use rusty_gasket::BoxError;
pub use rusty_gasket::auth::backend::{AuthBackend, AuthBackendHandle};
pub use rusty_gasket::auth::backends::basic_auth::BasicAuthBackend;
pub use rusty_gasket::auth::backends::static_bearer::StaticBearerBackend;
pub use rusty_gasket::auth::chain::{AuthChain, UnauthenticatedPolicy};
pub use rusty_gasket::auth::error::AuthError;
pub use rusty_gasket::auth::extractors::{
Authenticated, CurrentUser, OptionalIdentity, RequireScope, RequiredScope, ServiceAccount,
SuperuserOnly,
};
pub use rusty_gasket::auth::identity::Identity;
pub use rusty_gasket::auth::middleware::{AuthMiddlewareState, auth_middleware};
pub use rusty_gasket::auth::{AuditLogger, AuditLoggerHandle, TracingAuditLogger};
}