[Catalyst] Catalyst::Plugin::Authentication set_authenticated
Bill Corr
bcorr at aptina.com
Wed Oct 5 09:02:56 GMT 2011
Hi,
Is the set_authenticated method really private? I am puzzled because in
the documentation for Catalyst::Plugin::Authentication there is an
example using this method -
$user = $c->find_user({ id => $id });
$c->set_authenticated($user); # logs the user in and calls
persist_user
Yet, later on it is listed as an internal method, with the usual caveats
-
INTERNAL METHODS
These methods are for Catalyst::Plugin::Authentication INTERNAL USE
only. Please do not use them in your own code, whether application or
credential / store modules. If you do, you will very likely get the
nasty shock of having to fix / rewrite your code when things change.
They are documented here only for reference.
$c->set_authenticated( $user, $realmname )
Well, I am using it anyway!
Thanks,
Bill.
Aptina (UK) Limited, Century Court, Millennium Way, Bracknell, Berkshire, RG12 2XT. Registered in England No. 06570543.
This e-mail and any attachments contain confidential information and are solely for the review and use of the intended recipient. If you have received this e-mail in error, please notify the sender and destroy this e-mail and any copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20111005/bea1c7a9/attachment.htm
More information about the Catalyst
mailing list