Crate trillium_basic_auth
source ·Expand description
Basic authentication for trillium.rs
use trillium_basic_auth::BasicAuth;
trillium_smol::run((
BasicAuth::new("trillium", "7r1ll1um").with_realm("rust"),
|conn: trillium::Conn| async move { conn.ok("authenticated") },
));
Structs§
- basic auth handler
- basic auth username-password credentials