Fixed so that session_expires == stored session expires
[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
15     'Plugin::Authentication' => {
16         default => {
17             credential => {
18                 class => 'Password',
19                 password_field => 'password',
20                 password_type => 'clear'
21             },
22             store => {
23                 class => 'Minimal',
24                 users => {
25                     bob => {
26                         password => "s00p3r",
27                     },
28                     william => {
29                         password => "s3cr3t",
30                     },
31                 },
32             },
33         },
34     },
35 );
36
37 __PACKAGE__->setup;
38
39 __PACKAGE__;
40