[Catalyst] Authentication

Yuval Kogman nothingmuch at woobling.org
Tue Dec 6 08:27:41 CET 2005


On Tue, Dec 06, 2005 at 01:42:12 +0200, Denis wrote:
> Hi ppl,
> I try use Authentication ,as described at http://dev.catalyst.perl.org/wiki/BestPractices

Looking back at that it's kinda vague - I'm guessing I wrote it.

Does anybody want to take a crack at fixing this?

> When I add this line:
> __PACKAGE__->deny_access_unless( "/", sub { $_[1]->user } );
> I get error:
> Insufficient Arguments : You must specify a path at (...)

Can you copy paste more?

I don't think i ever used that wording, so i suspect the error is
not mine.

Also, try to run it wither

	perl -MCarp=verbose

to provide a full error stack.

> So question is: how to add to deny_access_unless to all components,
> because "/" is incorrect ?

It actually is correct. The error is due to some other reason.

-- 
 ()  Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418  perl hacker &
 /\  kung foo master: /me kicks %s on the nose: neeyah!!!!!!!!!!!!!!!!!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051206/478fd077/attachment.pgp


More information about the Catalyst mailing list