Commit | Line | Data |
861c2f44 |
1 | package AuthTestApp; |
d9412896 |
2 | use Catalyst qw/ |
3 | Authentication |
4 | /; |
5 | our %users; |
6 | __PACKAGE__->config( |
7 | 'Plugin::Authentication' => { |
861c2f44 |
8 | default_realm => 'test', |
d9412896 |
9 | test => { |
10 | store => { |
11 | class => 'Minimal', |
12 | users => \%users, |
13 | }, |
14 | credential => { |
15 | class => 'HTTP', |
16 | type => 'basic', |
17 | password_type => 'clear', |
18 | password_field => 'password' |
861c2f44 |
19 | }, |
20 | }, |
d9412896 |
21 | }, |
22 | ); |
23 | %users = ( |
24 | foo => { password => "s3cr3t", }, |
25 | ); |
26 | __PACKAGE__->setup; |
27 | |
28 | 1; |
29 | |