0a933920cdd2fe508da935e0136249b076d74cfe
[catagits/Catalyst-Plugin-Session.git] / t / lib / SessionTestApp.pm
1 #!/usr/bin/env perl
2
3 package SessionTestApp;
4 use Catalyst qw/Session Session::Store::Dummy Session::State::Cookie Authentication/;
5
6 use strict;
7 use warnings;
8
9 __PACKAGE__->config('Plugin::Session' => {
10         # needed for live_verify_user_agent.t; should be harmless for other tests
11         verify_user_agent => 1,
12         verify_address => 1,
13
14         expires => 20,
15         expiry_threshold => 10,
16
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 );
40
41 __PACKAGE__->setup;
42
43 __PACKAGE__;
44