3 package Catalyst::Plugin::Authentication::Store::Minimal;
8 use Catalyst::Plugin::Authentication::Store::Minimal::Backend;
13 $c->default_auth_store(
14 Catalyst::Plugin::Authentication::Store::Minimal::Backend->new(
15 $c->config->{authentication}{users}
30 Catalyst::Plugin::Authentication::Store::Minimal - Authentication
31 database in C<<$c->config>>.
37 Authentication::Store::Minimal
38 Authentication::Credential::Password
41 __PACKAGE__->config->{authentication}{users} = {
44 roles => [qw/admin editor/],
50 my ( $self, $c ) = @_;
52 $c->login( $c->req->param("login"), $c->req->param("password"), );
57 This authentication store plugin lets you create a very quick and dirty user
58 database in your application's config hash.
60 It's purpose is mainly for testing, and it should probably be replaced by a
61 more "serious" store for production.
63 The hash in the config, as well as the user objects/hashes are freely mutable
72 This method will popultate C<< $c->config->{authentication}{store} >> so that
73 L<Catalyst::Plugin::Authentication/default_auth_store> can use it.