Catalyst::Authentication::Store::IMAP(3pm)

Catalyst::Authentication::Store::IMAP3pm

Authentication store accessing an imap server.

Usage

    use Catalyst qw(
      Authentication
      );
    __PACKAGE__->config(
      'authentication' => {
         default_realm => "imap",
         realms => {
           imap => {
             credential => {
               class          => "Password",
               password_field => "password",
               password_type  => "self_check",
             },
             store => {
               class => 'IMAP',
               host  => 'localhost',
             },
           },
         },
       },
    );
    sub login : Global {
        my ( $self, $c ) = @_;
        $c->authenticate({
                          id          => $c->req->param("login"), 
                          password    => $c->req->param("password") 
                         });
        $c->res->body("Welcome " . $c->user->username . "!");
    }

Overview

This plugin implements the Catalyst::Authentication v.10 API. Read that documentation first if you are upgrading from a previous version of this plugin.

This plugin uses "Mail::IMAPClient" to let your application authenticate against an IMAP server. The used imap client object is stored on the stash as imapclient for use in other components.

Options

host

Sets the host name (or IP address) of the IMAP server.

port

Optionally set the port to connect to, defaults to 143. If you specify port 993, IO::Socket::SSL will be used for connecting.

Attributes

host

The host name used to connect to.

Methods

new

from_session

find_user

Releases

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

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Authors

Stefan Seifert <[email protected]>

License

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

From ciderwebmail 1.05+20240702-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.