use Class::Inspector;
use Catalyst::Authentication::Realm;
-our $VERSION = "0.10015";
+our $VERSION = "0.10016";
sub set_authenticated {
my ( $c, $user, $realmname ) = @_;
Fetch a particular users details, matching the provided user info, from the realm
specified in $realm.
+ $user = $c->find_user({ id => $id });
+ $c->set_authenticated($user); # logs the user in and calls persist_user
+
=head2 persist_user()
Under normal circumstances the user data is only saved to the session during
=head2 $c->set_authenticated( $user, $realmname )
Marks a user as authenticated. This is called from within the authenticate
-routine when a credential returns a user. $realmname defaults to 'default'
+routine when a credential returns a user. $realmname defaults to 'default'.
+You can use find_user to get $user
=head2 $c->auth_restore_user( $user, $realmname )
Nigel Metheringham
+Florian Ragwitz C<rafl@debian.org>
+
+Stephan Jauernick C<stephanj@cpan.org>
+
=head1 COPYRIGHT & LICENSE
Copyright (c) 2005 - 2009