Another dev release for teh CPANZ. Errors are no longer fatal by default.
[catagits/Catalyst-Authentication-Credential-OpenID.git] / t / Consumer / lib / TestApp.pm
CommitLineData
5f33d3e0 1package TestApp;
2
3use strict;
4use warnings;
5
6use Catalyst::Runtime '5.70';
7
8use Catalyst qw(
9 -Debug
10 ConfigLoader
11 Authentication
12 Session
13 Session::Store::FastMmap
14 Session::State::Cookie
15 );
16
17our $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 => {
06f54255 44 errors_are_fatal => 1,
5f33d3e0 45 # ua_class => "LWPx::ParanoidAgent",
46 ua_class => "LWP::UserAgent",
47 ua_args => {
48 whitelisted_hosts => [qw/ 127.0.0.1 localhost /],
49 timeout => 10,
50 },
1c4d7c1f 51 extensions => [
5f33d3e0 52 'http://openid.net/extensions/sreg/1.1',
53 {
54 required => 'email',
55 optional => 'fullname,nickname,timezone',
56 },
57 ],
58 debug => 1,
59 credential => {
60 class => "OpenID",
61#DOES NOTHING use_session => 1,
62 store => {
63 class => "OpenID",
64 },
65 },
66 },
67 },
68 },
69 );
70
71__PACKAGE__->setup();
72
731;
74
75__END__