Catalyst-Authentication-Store-CouchDB

 view release on metacpan or  search on metacpan

lib/Catalyst/Authentication/Store/CouchDB.pm  view on Meta::CPAN

}
# ABSTRACT: A storage class for Catalyst Authentication using CouchDB
## use critic
use strict;
use warnings;

use Moose 2.00;
use Catalyst::Exception;

has 'store_user_class'  => (is => 'ro', isa => 'Str', default => 'Catalyst::Authentication::Store::CouchDB::User', );
has 'config'            => (is => 'ro', isa => 'HashRef', required => 1,  );

# Convert the parameters passed to ->new into the correct
# format for passing to our Moose generated constructor.
# Also, ensure that the user class is loaded.

around BUILDARGS => sub {
    my ( $orig, $class, $config, $c ) = @_;

    # Validate the configuration
    if (!$config->{couchdb_uri}) {



( run in 0.684 second using v1.01-cache-2.11-cpan-5f2e87ce722 )