Catalyst-Authentication-Store-DBIx-Class
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/Store/DBIx/Class.pm view on Meta::CPAN
words, it will not use the same arguments you used to request the user initially.
This is especially important to those using the advanced methods of user retrieval.
If you need more complicated logic when reviving the user from the session, you will
most likely want to subclass the L<Catalyst::Authentication::Store::DBIx::Class::User> class
and provide your own for_session and from_session routines.
=back
=head1 METHODS
There are no publicly exported routines in the DBIx::Class authentication
store (or indeed in most authentication stores). However, below is a
description of the routines required by L<Catalyst::Plugin::Authentication>
for all authentication stores. Please see the documentation for
L<Catalyst::Plugin::Authentication::Internals> for more information.
=head2 new ( $config, $app )
Constructs a new store object.
=head2 find_user ( $authinfo, $c )
Finds a user using the information provided in the $authinfo hashref and
returns the user, or undef on failure. This is usually called from the
Credential. This translates directly to a call to
L<Catalyst::Authentication::Store::DBIx::Class::User>'s load() method.
=head2 for_session ( $c, $user )
Prepares a user to be stored in the session. Currently returns the value of
the user's id field (as indicated by the 'id_field' config element)
=head2 from_session ( $c, $frozenuser)
Revives a user from the session based on the info provided in $frozenuser.
Currently treats $frozenuser as an id and retrieves a user with a matching id.
=head2 user_supports
Provides information about what the user object supports.
=head2 auto_update_user( $authinfo, $c, $res )
This method is called if the realm's auto_update_user setting is true. It
will delegate to the user object's C<auto_update> method.
=head2 auto_create_user( $authinfo, $c )
This method is called if the realm's auto_create_user setting is true. It
will delegate to the user class's (resultset) C<auto_create> method.
=head1 NOTES
As of the current release, session storage consists of simply storing the user's
id in the session, and then using that same id to re-retrieve the user's information
from the database upon restoration from the session. More dynamic storage of
user information in the session is intended for a future release.
=head1 BUGS AND LIMITATIONS
None known currently; please email the author if you find any.
=head1 SEE ALSO
L<Catalyst::Plugin::Authentication>, L<Catalyst::Plugin::Authentication::Internals>,
and L<Catalyst::Plugin::Authorization::Roles>
=head1 AUTHOR
Jason Kuri (jayk@cpan.org)
=head1 LICENSE
Copyright (c) 2007 the aforementioned authors. All rights
reserved. This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
=cut
( run in 1.235 second using v1.01-cache-2.11-cpan-39bf76dae61 )