3 package Catalyst::Plugin::Authentication::Store::Minimal;
4 use base qw/Catalyst::Plugin::Authentication::Store/;
9 use Catalyst::Plugin::Authentication::Store::Minimal::Backend;
14 $c->config->{authentication}{store} =
15 Catalyst::Plugin::Authentication::Store::Minimal::Backend->new(
16 $c->config->{authentication}{users} );
28 Catalyst::Plugin::Authentication::Store::Minimal - Authentication
29 database in C<<$c->config>>.
35 Authentication::Store::Minimal
36 Authentication::Credential::Password
39 __PACKAGE__->config->{authentication}{users} = {
42 roles => [qw/admin editor/],
48 my ( $self, $c ) = @_;
50 $c->login( $c->req->param("login"), $c->req->param("password"), );
55 This authentication store plugin lets you create a very quick and dirty user
56 database in your application's config hash.
58 It's purpose is mainly for testing, and it should probably be replaced by a
59 more "serious" store for production.
61 The hash in the config, as well as the user objects/hashes are freely mutable
64 This plugin inherits L<Catalyst::Plugin::Authentication::Store>.
72 This method will popultate C<< $c->config->{authentication}{store} >> so that
73 L<Catalyst::Plugin::Authentication::Store> can use it.