Catalyst::Authentication::Store::CouchDB is a Perl module that provides access to authentication information stored in a CouchDB instance.
SYNOPSIS
use Catalyst qw/
Authentication
Authorization::Roles/;
__PACKAGE__->config->{authentication} =
{
default_realm => 'members',
realms => {
members => {
credential => {
class => 'Password',
password_field => 'password',
password_type => 'salted_hash',
password_salt_len => 4,
},
store => {
class => 'CouchDB',
couchdb_uri => 'http://localhost:5984',
dbname => 'demouser',
designdoc => '_design/user',
view => 'user',
},
},
},
};
# Log a user in:
sub login : Global {
my ( $self, $c ) = @_;
$c->authenticate({
username => $c->req->params->{username},
password => $c->req->params->{password},
}))
}
# verify a role
if ( $c->check_user_roles( 'editor' ) ) {
# do editor stuff
}
Product's homepage
Requirements:
· Perl