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