X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FAuthentication%2FStore%2FMinimal.pm;h=2238e2a79449d9929864cbddfcef23bc81e0e8be;hb=5afc0dde8ed2e775eb80069bc85e2024bb8122fb;hp=91c7c1379591bc65d934223f617ee34bd435e045;hpb=8d0e04d07fa7435dd30a53586663246dc4fc4fd8;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm b/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm index 91c7c13..2238e2a 100644 --- a/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm +++ b/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm @@ -12,7 +12,7 @@ BEGIN { } sub new { - my ( $class, $config, $app) = @_; + my ( $class, $config, $app, $realm) = @_; bless { userhash => $config->{'users'} }, $class; } @@ -104,8 +104,7 @@ __END__ =head1 NAME -Catalyst::Plugin::Authentication::Store::Minimal - Minimal -authentication store. +Catalyst::Plugin::Authentication::Store::Minimal - Minimal authentication store =head1 SYNOPSIS @@ -190,14 +189,12 @@ There 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 L for all authentication stores. -=over 4 - -=item new ( $config, $app ) +=head2 new( $config, $app, $realm ) Constructs a new store object, which uses the user element of the supplied config hash ref as it's backing structure. -=item find_user ( $authinfo, $c ) +=head2 find_user( $authinfo, $c ) Keys the hash by the 'id' or 'username' element in the authinfo hash and returns the user. @@ -206,16 +203,14 @@ Keys the hash by the 'id' or 'username' element in the authinfo hash and returns If the return value is unblessed it will be blessed as L. -=item from_session $id +=head2 from_session( $id ) Delegates to C. -=item user_supports +=head2 user_supports( ) Chooses a random user from the hash and delegates to it. -=back - =cut