Commit | Line | Data |
---|---|---|
16585083 | 1 | package TestApp; |
2 | use strict; | |
3 | use warnings; | |
4 | ||
5 | use Catalyst qw/ | |
6 | Authentication | |
7 | /; | |
8 | ||
9 | __PACKAGE__->config( | |
10 | authentication => { | |
11 | default_realm => 'test', | |
12 | realms => { | |
13 | test => { | |
14 | credential => { | |
15 | class => 'Password', | |
16 | password_field => 'password', | |
17 | password_type => 'self_check', | |
18 | }, | |
19 | store => { | |
20 | class => 'Htpasswd', | |
21 | file => 'htpasswd', | |
22 | }, | |
23 | }, | |
24 | }, | |
29150588 | 25 | }, |
16585083 | 26 | ); |
27 | ||
28 | __PACKAGE__->setup; | |
29 | ||
30 | 1; |