This is 0.05.
[catagits/Catalyst-Authentication-Credential-OpenID.git] / t / TestApp / lib / TestApp.pm
1 package TestApp;
2
3 use strict;
4 use warnings;
5
6 use Catalyst::Runtime '5.70';
7
8 use Catalyst qw(
9                 -Debug
10                 ConfigLoader
11                 Authentication
12                 Session
13                 Session::Store::FastMmap
14                 Session::State::Cookie
15                 );
16
17 our $VERSION = '0.01';
18
19 __PACKAGE__->config
20     ( name => "TestApp",
21       startup_time => time(),
22       "Plugin::Authentication" => {
23           default_realm => "members",
24           realms => {
25               members => {
26                   credential => {
27                       class => "Password",
28                       password_field => "password",
29                       password_type => "clear"
30                       },
31                           store => {
32                               class => "Minimal",
33                               users => {
34                                   paco => {
35                                       password => "l4s4v3n7ur45",
36                                   },
37                               }                       
38                           }
39               },
40               openid => {
41 #                  ua_class => "LWPx::ParanoidAgent",
42                   ua_class => "LWP::UserAgent",
43                   ua_args => {
44                       whitelisted_hosts => [qw/ 127.0.0.1 localhost /],
45                   },
46                   debug => 1,
47                   credential => {
48                       class => "OpenID",
49 #DOES NOTHING                      use_session => 1        
50                       store => {
51                           class => "OpenID",
52                       },
53                   },
54               },
55           },
56       },
57       );
58
59 # Start the application
60 __PACKAGE__->setup;
61
62 1;
63
64 __END__