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