Commit | Line | Data |
064c3709 |
1 | #!/usr/bin/env perl |
300eb468 |
2 | |
3 | package SessionTestApp; |
1b41775a |
4 | use Catalyst qw/Session Session::Store::Dummy Session::State::Cookie Authentication/; |
300eb468 |
5 | |
6 | use strict; |
7 | use warnings; |
8 | |
064c3709 |
9 | __PACKAGE__->config('Plugin::Session' => { |
1b41775a |
10 | # needed for live_verify_user_agent.t; should be harmless for other tests |
11 | verify_user_agent => 1, |
12 | verify_address => 1, |
2a1463db |
13 | |
0421e89a |
14 | expires => 20, |
15 | expiry_threshold => 10, |
16 | |
1b41775a |
17 | }, |
18 | |
19 | 'Plugin::Authentication' => { |
20 | default => { |
21 | credential => { |
22 | class => 'Password', |
23 | password_field => 'password', |
24 | password_type => 'clear' |
25 | }, |
26 | store => { |
27 | class => 'Minimal', |
28 | users => { |
29 | bob => { |
30 | password => "s00p3r", |
31 | }, |
32 | william => { |
33 | password => "s3cr3t", |
34 | }, |
35 | }, |
36 | }, |
37 | }, |
38 | }, |
39 | ); |
06c621b5 |
40 | |
300eb468 |
41 | __PACKAGE__->setup; |
42 | |
43 | __PACKAGE__; |
44 | |