[Catalyst] Advice needed: Action for authentication check

Jonas jonas.alves at gmail.com
Thu Aug 3 12:07:55 CEST 2006


Just try InstantCRUD from trunk. It does exactly that. :)

--Jonas

On 03/08/06, Matthieu Codron <matthieu at codron.org> wrote:
> Hi everyone,
>
> I have been playing with some "recent" features of Catalyst like
> Actions and forward chains.
> I was wondering if an action could be used to provide encaspulated
> authentication check like in:
>
> sub dostuff : ActionClass('Secured') {
>  ...
> }
>
> The Secured action would check if a user is logged in and would take
> appropriate actions if not (redirect to a login page or an acces
> denied page)
>
> It seemed a bit top obvious, so I was wondering if I was missing something :-)
>
> In general, are Actions meant to be some kind of AOP feature?
>
> Thanks for the advice(s)
>
> Regards,
> --
> Matthieu
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list