This is 0.12 on the CPAN.
[catagits/Catalyst-Authentication-Credential-OpenID.git] / t / TestApp / lib / TestApp.pm
CommitLineData
e5b6823d 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
a404fd1a 17our $VERSION = '0.03';
e5b6823d 18
19__PACKAGE__->config
20 ( name => "TestApp",
a47955ed 21 session => {
22 storage => "/tmp/" . __PACKAGE__ . "-" . $VERSION,
23 },
e5b6823d 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 },
a404fd1a 40 }
e5b6823d 41 }
42 },
43 openid => {
1200a1ee 44 ua_class => "LWPx::ParanoidAgent",
45# ua_class => "LWP::UserAgent",
e5b6823d 46 ua_args => {
47 whitelisted_hosts => [qw/ 127.0.0.1 localhost /],
1200a1ee 48 timeout => 10,
e5b6823d 49 },
a404fd1a 50 extension_args => [
51 'http://openid.net/extensions/sreg/1.1',
52 {
53 required => 'email',
54 optional => 'fullname,nickname,timezone',
55 },
56 ],
e5b6823d 57 debug => 1,
58 credential => {
59 class => "OpenID",
a404fd1a 60#DOES NOTHING use_session => 1,
e5b6823d 61 store => {
62 class => "OpenID",
63 },
64 },
65 },
66 },
67 },
68 );
69
a404fd1a 70__PACKAGE__->setup();
e5b6823d 71
721;
73
74__END__