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.


_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to