Catalyst::Plugin::Authentication::Store

Catalyst::Plugin::Authentication::Store::DBIx::Class is a storage class for Catalyst Authentication using DBIx::Class.
Download

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

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jason Kuri
  • Publisher web site:
  • http://search.cpan.org/~jayk/Catalyst-Plugin-Authentication-Store-DBIx-Class-0.10/lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm

Catalyst::Plugin::Authentication::Store Tags


Catalyst::Plugin::Authentication::Store Description

Catalyst::Plugin::Authentication::Store::DBIx::Class is a storage class for Catalyst Authentication using DBIx::Class. Catalyst::Plugin::Authentication::Store::DBIx::Class is a storage class for Catalyst Authentication using DBIx::Class.SYNOPSIS use Catalyst qw/ Authentication Authorization::Roles/; __PACKAGE__->config->{authentication} = { default_realm => 'members', realms => { members => { credential => { class => 'Password', password_field => 'password', password_type => 'clear' }, store => { class => 'DBIx::Class', user_class => 'MyApp::Users', id_field => 'user_id', role_relation => 'roles', role_field => 'rolename', } } } }; # Log a user in: sub login : Global { my ( $self, $c ) = @_; $c->authenticate({ username => $c->req->params->username, password => $c->req->params->password, status => })) } # verify a role if ( $c->check_user_roles( 'editor' ) ) { # do editor stuff } Requirements: · Perl


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