Expand description
Composable authentication for Rust.
rs-auth is a facade crate that re-exports rs_auth_core (always),
rs_auth_postgres (behind the postgres feature), and rs_auth_axum
(behind the axum feature).
§Quick start
[dependencies]
rs-auth = { version = "0.1", features = ["postgres", "axum"] }Re-exports§
pub use rs_auth_core as core;pub use rs_auth_postgres as postgres;pub use rs_auth_axum as axum;
Modules§
Structs§
- Auth
Config - Top-level authentication configuration.
- Auth
Service - Core authentication service. Generic over storage backends and email sender.
- Cookie
Config - HTTP cookie configuration.
- Email
Config - Email behavior configuration.
- Login
Result - Result returned by
AuthService::login. - Request
Reset Result - Result returned by
AuthService::request_password_reset. - Reset
Password Result - Result returned by
AuthService::reset_password. - Session
Result - Result returned by
AuthService::get_session. - Signup
Result - Result returned by
AuthService::signup. - Verify
Email Result - Result returned by
AuthService::verify_email.
Enums§
Traits§
- OAuth
State Store - Storage backend for transient OAuth state records.