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
index 4e81671..def03ae 100644 (file)
@@ -69,6 +69,83 @@ __PACKAGE__->config
 
 __PACKAGE__->setup();
 
+use YAML; die YAML::Dump \%INC;
+
+
+1;
+
+__END__
+package TestApp;
+
+use strict;
+use warnings;
+
+use Catalyst::Runtime '5.70';
+
+use Catalyst qw(
+                -Debug
+                ConfigLoader
+                Authentication
+                Session
+                Session::Store::FastMmap
+                Session::State::Cookie
+                );
+
+our $VERSION = '0.03';
+
+__PACKAGE__->config
+    ( name => "TestApp",
+      session => {
+          storage => "/tmp/" . __PACKAGE__ . "-" . $VERSION,
+      },
+      startup_time => time(),
+      "Plugin::Authentication" => {
+          default_realm => "members",
+          realms => {
+              members => {
+                  credential => {
+                      class => "Password",
+                      password_field => "password",
+                      password_type => "clear"
+                      },
+                          store => {
+                              class => "Minimal",
+                              users => {
+                                  paco => {
+                                      password => "l4s4v3n7ur45",
+                                  },
+                              }
+                          }
+              },
+              openid => {
+                  ua_class => "LWPx::ParanoidAgent",
+#                  ua_class => "LWP::UserAgent",
+                  ua_args => {
+                      whitelisted_hosts => [qw/ 127.0.0.1 localhost /],
+                      timeout => 10,
+                  },
+                  extension_args => [
+                      'http://openid.net/extensions/sreg/1.1',
+                      {
+                       required => 'email',
+                       optional => 'fullname,nickname,timezone',
+                      },
+                  ],
+                  debug => 1,
+                  credential => {
+                      class => "OpenID",
+#DOES NOTHING                      use_session => 1,
+                      store => {
+                          class => "OpenID",
+                      },
+                  },
+              },
+          },
+      },
+      );
+
+__PACKAGE__->setup();
+
 1;
 
 __END__