[Catalyst] On authentication again

Alex Povolotsky tarkhil at over.ru
Thu Mar 6 16:06:55 GMT 2008


Hello!

Maybe someone could provide the complete example of auth system with 
MODERN Catalyst::Plugin::Authentication?

I mean, with database, Model and proper config.

Right now, I've stopped by

You must provide a user_class at 
/usr/local/lib/perl5/site_perl/5.8.8/Catalyst.pm line 911

error, though I've provided user_class in config.

__PACKAGE__->config->{'Plugin::Authentication'} =
{
    default_realm => 'members',
    realms => {
        members => {
            credential => {
                class => 'Password',
                password_field => 'password',
                password_type => 'clear',
            },
            store => {
                class => 'DBIx::Class',
                user_class => 'Main::Pwuser',
                role_column => 'rid',
            }
        },
    }
};

Unfortunately, C::P::A documentation assumes that reader already knows 
C::P::A :(

I even don't understand what __PACKAGE__->config-> I should use - 
{'Plugin::Authentication'}, {authentication} or{authentication}{dbic}. 
Docs are unclear.

Alex.




More information about the Catalyst mailing list