]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb.pm
Login/Logout and session support with roles + convert to html 4.01.
[ndwebbie.git] / lib / NDWeb.pm
index 2dbab22e755946756581e26838f19abec9883b4f..85bbf831de6fd811d83c6d571e07e635e8900e79 100644 (file)
@@ -27,10 +27,27 @@ our $VERSION = '0.01';
 # local deployment.
 
 __PACKAGE__->config( name => 'NDWeb' );
+__PACKAGE__->config->{'Plugin::Authentication'}{'use_session'} = 1;
+
 
-# Start the application
-__PACKAGE__->setup(qw/-Debug ConfigLoader Static::Simple/);
 
+# Start the application
+__PACKAGE__->setup(qw/
+       -Debug
+       ConfigLoader
+       Static::Simple
+
+       Authentication
+       Authentication::Store::NDWeb
+       Authentication::Credential::Password
+
+       Authorization::Roles
+       Authorization::ACL
+       
+       Session
+       Session::Store::File
+       Session::State::Cookie
+       /);
 
 =head1 NAME