larust_auth/lib.rs
1//! Session-backed authentication and lightweight authorization - Laravel's
2//! `Auth` facade, `auth`/`guest` middleware, and `authorize()` helper,
3//! re-exported through `larust_support::auth` (see
4//! `crates/larust-support/src/lib.rs`) so generated apps depend only on
5//! `larust-support`, never on this crate directly.
6
7mod authenticatable;
8mod authorize;
9mod extractor;
10mod guard;
11mod hash;
12mod middleware;
13mod policy;
14
15pub use authenticatable::Authenticatable;
16pub use authorize::authorize;
17pub use extractor::Auth;
18pub use guard::{check, check_for, id, id_for, login, logout, logout_for, user};
19pub use hash::{hash_password, verify_password};
20pub use middleware::{
21 redirect_authenticated, redirect_authenticated_for, require_auth, require_auth_for,
22};
23pub use policy::Policy;