Catalyst::Plugin::Authentication::Store::Minimal

Catalyst::Plugin::Authentication::Store::Minimal is a minimal authentication store.
Download

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

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Yuval Kogman, Jay Kuri, Jess Robinson and David Kamholz
  • Publisher web site:
  • http://search.cpan.org/~jayk/

Catalyst::Plugin::Authentication::Store::Minimal Tags


Catalyst::Plugin::Authentication::Store::Minimal Description

Catalyst::Plugin::Authentication::Store::Minimal is a minimal authentication store. Catalyst::Plugin::Authentication::Store::Minimal is a minimal authentication store.SYNOPSIS # you probably just want Store::Minimal under most cases, # but if you insist you can instantiate your own store: use Catalyst::Plugin::Authentication::Store::Minimal; use Catalyst qw/ Authentication /; __PACKAGE__->config->{authentication} = { default_realm => 'members', realms => { members => { credential => { class => 'Password', password_field => 'password', password_type => 'clear' }, store => { class => 'Minimal', users = { bob => { password => "s00p3r", editor => 'yes', roles => , }, william => { password => "s3cr3t", roles => , } } } } } };This authentication store lets you create a very quick and dirty user database in your application's config hash.You will need to include the Authentication plugin, and at least one Credential plugin to use this Store. Credential::Password is reccommended.It's purpose is mainly for testing, and it should probably be replaced by a more "serious" store for production.The hash in the config, as well as the user objects/hashes are freely mutable at runtime.METHODSThere are no publicly exported routines in the Minimal store (or indeed in most authentication stores) However, below is a description of the routines required by Catalyst::Plugin::Authentication for all authentication stores.new ( $config, $app )Constructs a new store object, which uses the user element of the supplied config hash ref as it's backing structure.find_user ( $authinfo, $c )Keys the hash by the 'id' or 'username' element in the authinfo hash and returns the user.... documentation fairy stopped here. ...If the return value is unblessed it will be blessed as Catalyst::Plugin::Authentication::User::Hash.from_session $idDelegates to get_user.user_supportsChooses a random user from the hash and delegates to it. Requirements: · Perl


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