Lots of boilerplate
- long but customizeable
- here's the basic idea:
use Catalyst qw(... Session ... Authentication ...);
__PACKAGE__->config(authentication => {
default_realm => 'users',
realms => {
users => {
credential => {
class => 'Password',
password_field => 'password',
password_type => 'clear'
},
store => {
class => 'Minimal',
users => {
jon => { password => "test" },
},
},
},
},
});
continued...