Catalyst::Plugin::Authentication::Store::DBIC

Catalyst::Plugin::Authentication::Store::DBIC allows authentication and authorization against a DBIx::Class or Class::DBI model.
Download

Catalyst::Plugin::Authentication::Store::DBIC Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Kamholz
  • Publisher web site:
  • http://search.cpan.org/~mramberg/Catalyst-Plugin-Authentication-Store-DBIC-0.09/lib/Catalyst/Plugin/Authentication/Store/DBIC/Backend.pm

Catalyst::Plugin::Authentication::Store::DBIC Tags


Catalyst::Plugin::Authentication::Store::DBIC Description

Catalyst::Plugin::Authentication::Store::DBIC allows authentication and authorization against a DBIx::Class or Class::DBI model. Catalyst::Plugin::Authentication::Store::DBIC allows authentication and authorization against a DBIx::Class or Class::DBI model.SYNOPSIS use Catalyst qw/ Authentication Authentication::Store::DBIC Authentication::Credential::Password Authorization::Roles # if using roles /; # Authentication __PACKAGE__->config->{authentication}{dbic} = { user_class => 'DB::User', user_field => 'username', password_field => 'password', password_type => 'hashed', password_hash_type => 'SHA-1', }; # Authorization using a many-to-many role relationship # For more detailed instructions on setting up role-based auth, please # see the section below titled L. __PACKAGE__->config->{authorization}{dbic} = { role_class => 'DB::Role', role_field => 'role', role_rel => 'map_user_role', # DBIx::Class only user_role_user_field => 'user', user_role_class => 'DB::UserRole', # Class::DBI only user_role_role_field => 'role', # Class::DBI only }; # log a user in sub login : Global { my ( $self, $c ) = @_; $c->login( $c->req->param("email"), $c->req->param("password"), ); } # verify a role if ( $c->check_user_roles( 'admin' ) ) { $model->delete_everything; } Requirements: · Perl


Catalyst::Plugin::Authentication::Store::DBIC Related Software