Commit | Line | Data |
5f33d3e0 |
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.00001'; |
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 => { |
5f33d3e0 |
44 | credential => { |
45 | class => "OpenID", |
46 | #DOES NOTHING use_session => 1, |
47 | store => { |
48 | class => "OpenID", |
49 | }, |
29b37787 |
50 | errors_are_fatal => 1, |
51 | # ua_class => "LWPx::ParanoidAgent", |
52 | ua_class => "LWP::UserAgent", |
53 | ua_args => { |
54 | whitelisted_hosts => [qw/ 127.0.0.1 localhost /], |
55 | timeout => 10, |
56 | }, |
57 | extensions => [ |
58 | 'http://openid.net/extensions/sreg/1.1', |
59 | { |
60 | required => 'email', |
61 | optional => 'fullname,nickname,timezone', |
62 | }, |
63 | ], |
64 | debug => 1, |
5f33d3e0 |
65 | }, |
66 | }, |
67 | }, |
68 | }, |
69 | ); |
70 | |
71 | __PACKAGE__->setup(); |
72 | |
73 | 1; |
74 | |
75 | __END__ |