Expand description

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()
}

Structs

An implementation of bellhop::auth::Auth.