Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Catalyst::Authentication::Store::CouchDB 0.001

    Download button

    No screenshots available
    Downloads: 102  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Colin Bradford | More programs
    Perl Artistic License / FREE
    January 25th, 2012, 07:36 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Catalyst::Authentication::Store::CouchDB description

    A storage class for Catalyst Authentication using CouchDB

    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

      


    TAGS:

    CouchDB instance | Catalyst authentication | CouchDB | instance | Catalyst

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM