How about we do our commits in trunk, so that we actually get sane linear revision...
[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.03';
18
19 __PACKAGE__->config
20     ( name => "TestApp",
21       session => {
22           storage => "/tmp/" . __PACKAGE__ . "-" . $VERSION,
23       },
24       startup_time => time(),
25       "Plugin::Authentication" => {
26           default_realm => "members",
27           realms => {
28               members => {
29                   credential => {
30                       class => "Password",
31                       password_field => "password",
32                       password_type => "clear"
33                       },
34                           store => {
35                               class => "Minimal",
36                               users => {
37                                   paco => {
38                                       password => "l4s4v3n7ur45",
39                                   },
40                               }
41                           }
42               },
43               openid => {
44                   ua_class => "LWPx::ParanoidAgent",
45 #                  ua_class => "LWP::UserAgent",
46                   ua_args => {
47                       whitelisted_hosts => [qw/ 127.0.0.1 localhost /],
48                       timeout => 10,
49                   },
50                   extension_args => [
51                       'http://openid.net/extensions/sreg/1.1',
52                       {
53                        required => 'email',
54                        optional => 'fullname,nickname,timezone',
55                       },
56                   ],
57                   debug => 1,
58                   credential => {
59                       class => "OpenID",
60 #DOES NOTHING                      use_session => 1,
61                       store => {
62                           class => "OpenID",
63                       },
64                   },
65               },
66           },
67       },
68       );
69
70 __PACKAGE__->setup();
71
72 use YAML; die YAML::Dump \%INC;
73
74
75 1;
76
77 __END__
78 package TestApp;
79
80 use strict;
81 use warnings;
82
83 use Catalyst::Runtime '5.70';
84
85 use Catalyst qw(
86                 -Debug
87                 ConfigLoader
88                 Authentication
89                 Session
90                 Session::Store::FastMmap
91                 Session::State::Cookie
92                 );
93
94 our $VERSION = '0.03';
95
96 __PACKAGE__->config
97     ( name => "TestApp",
98       session => {
99           storage => "/tmp/" . __PACKAGE__ . "-" . $VERSION,
100       },
101       startup_time => time(),
102       "Plugin::Authentication" => {
103           default_realm => "members",
104           realms => {
105               members => {
106                   credential => {
107                       class => "Password",
108                       password_field => "password",
109                       password_type => "clear"
110                       },
111                           store => {
112                               class => "Minimal",
113                               users => {
114                                   paco => {
115                                       password => "l4s4v3n7ur45",
116                                   },
117                               }
118                           }
119               },
120               openid => {
121                   ua_class => "LWPx::ParanoidAgent",
122 #                  ua_class => "LWP::UserAgent",
123                   ua_args => {
124                       whitelisted_hosts => [qw/ 127.0.0.1 localhost /],
125                       timeout => 10,
126                   },
127                   extension_args => [
128                       'http://openid.net/extensions/sreg/1.1',
129                       {
130                        required => 'email',
131                        optional => 'fullname,nickname,timezone',
132                       },
133                   ],
134                   debug => 1,
135                   credential => {
136                       class => "OpenID",
137 #DOES NOTHING                      use_session => 1,
138                       store => {
139                           class => "OpenID",
140                       },
141                   },
142               },
143           },
144       },
145       );
146
147 __PACKAGE__->setup();
148
149 1;
150
151 __END__