[Catalyst] C::P::Authentication, force user authentication

David Schmidt davewood at gmx.at
Tue Dec 29 08:38:55 GMT 2009


On Tue, Dec 29, 2009 at 9:15 AM, Ben van Staveren
<benvanstaveren at gmail.com> wrote:
>> On 28 Dec 2009, at 09:16, Ben van Staveren wrote:
>>>
>>> Warning: I use this myself, it seems to work, but it's a hack. YMMV.
>>> Standard disclaimer applies.
>>
>> I.e. It is very much relying on an implementation detail which I/we can
>> and _will_ feel free to change at our leisure if needed.
>
> Correct :) Like I said it's something I use in one spot, and I'm fully aware
> of the fact that it will break sooner or later, but for now it was the
> "quick" way to get the result I wanted.
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>


But if I had to choose between your hack and using

$c->set_authenticated( $user, $realmname )
(given that it works, never tested it)

Id go with the latter for at least its documented.


-- 
David Schmidt   |   http://www.fm5.at



More information about the Catalyst mailing list