1 package Catalyst::Authentication::Store::Null;
6 use Catalyst::Authentication::User::Hash;
8 use base qw( Class::Accessor::Fast );
11 __PACKAGE__->mk_accessors( qw( __config ) );
15 my ( $class, $config, $app, $realm ) = @_;
16 bless { __config => $config }, $class;
20 my ( $self, $c, $user ) = @_;
25 my ( $self, $c, $user ) = @_;
30 my ( $self, $userinfo, $c ) = @_;
31 return bless $userinfo, 'Catalyst::Authentication::User::Hash';
36 Catalyst::Authentication::User::Hash->supports(@_);
47 Catalyst::Authentication::Store::Null - Null authentication store
55 __PACKAGE__->config->{'Plugin::Authentication'} = {
56 default_realm => 'remote',
61 key_url => 'http://example.com/regkeys.txt',
72 The Null store is a transparent store where any supplied user data is
73 accepted. This is mainly useful for remotely authenticating credentials
74 (e.g. TypeKey, OpenID) which may not be tied to any local storage. It also
75 helps facilitate integration with the Session plugin.
81 Creates a new instance of the store.
85 Returns the user object passed to the method.
87 =head2 from_session( )
89 Returns the user object passed to the method.
93 Since this store isn't tied to any real set of users, this method just returns
94 the user info bless as a L<Catalyst::Authentication::User::Hash>
97 =head2 user_supports( )
99 Delegates to L<Catalyst::Authentication::User::Hash>.