[−][src]Crate bellhop_auth_dummy
An implementation of bellhop::auth::Auth
that authenticates a user based
on their email address (and only their email address.)
Uses HTTP cookies to store the logged in user.
Routes
Provides a couple routes:
/auth/dummy/login
: Handles logging in./auth/dummy/logout
: Deletes the stored cookie.
Catchers
Provides one error catcher:
401 Unauthorized
: Redirects to/auth/dummy/login
.
Example
use bellhop::Bellhop; use bellhop_auth_dummy::Dummy; fn main() { Bellhop::default() .auth(Dummy) .start() }
Macros
rocket_uri_macro_login_get | Rocket code generated wrapping URI macro. |
rocket_uri_macro_login_post | Rocket code generated wrapping URI macro. |
rocket_uri_macro_logout | Rocket code generated wrapping URI macro. |
Structs
Dummy | An implementation of |