Mojolicious::Plugin::BasicAuth(3pm)

Mojolicious::Plugin::BasicAuth3pm

Basic http auth helper

Overview

Mojolicous::Plugin::BasicAuth is a helper for basic http authentication.

Usage

    use Mojolicious::Lite;
    plugin 'basic_auth';
    get '/' => sub {
        my $self = shift;
        return $self->render_text('ok')
          if $self->basic_auth(
                  realm => sub { return 1 if "@_" eq 'username password' }
          );
    };
    app->start;

Methods

Mojolicious::Plugin::BasicAuth inherits all methods from Mojolicious::Plugin and implements the following new ones.

"register"

    $plugin->register;

Register condition in Mojolicious application.

Development

<http://github.com/tempire/mojolicious-plugin-basicauth>

Version

0.06

Credits

Kirill Miazine

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7
  2. 8–10
  3. 11
  4. 12–13

Author

Glen Hinkle [email protected]

From libmojolicious-plugin-basicauth-perl 0.08-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.