From: David Schmidt Date: Fri, 24 Sep 2010 07:54:29 +0000 (+0000) Subject: updated pod to make manual authentication more understandable X-Git-Tag: v0.10017~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4b4bfe2f455851ea95aaba501342918f71e3fe46;p=catagits%2FCatalyst-Plugin-Authentication.git updated pod to make manual authentication more understandable --- diff --git a/lib/Catalyst/Plugin/Authentication.pm b/lib/Catalyst/Plugin/Authentication.pm index a14b7ed..4898277 100644 --- a/lib/Catalyst/Plugin/Authentication.pm +++ b/lib/Catalyst/Plugin/Authentication.pm @@ -887,6 +887,9 @@ and the session. It does not delete the session. 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 @@ -911,7 +914,8 @@ for reference. =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 )