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}, $c
30 Catalyst::Plugin::Authentication::Store::Minimal - Authentication
31 database in C<< $c->config >>.
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 You will need to include the Authentication plugin, and at least one Credential
59 plugin to use this Store. Credential::Password is reccommended.
61 It's purpose is mainly for testing, and it should probably be replaced by a
62 more "serious" store for production.
64 The hash in the config, as well as the user objects/hashes are freely mutable
73 This is a simple hash of users, the keys are the usenames, and the values are
74 hashrefs containing a password key/value pair, and optionally, a roles/list
75 of role-names pair. If using roles, you will also need to add the
76 Authorization::Roles plugin.
78 See the SYNOPSIS for an example.
82 =head1 INTERNAL METHODS
88 This method will popultate C<< $c->config->{authentication}{store} >> so that
89 L<Catalyst::Plugin::Authentication/default_auth_store> can use it.