]> ruin.nu Git - ndwebbie.git/blob - lib/NDWeb.pm
Login/Logout and session support with roles + convert to html 4.01.
[ndwebbie.git] / lib / NDWeb.pm
1 package NDWeb;
2
3 use strict;
4 use warnings;
5
6 use Catalyst::Runtime '5.70';
7
8 # Set flags and add plugins for the application
9 #
10 #         -Debug: activates the debug mode for very useful log messages
11 #   ConfigLoader: will load the configuration from a YAML file in the
12 #                 application's home directory
13 # Static::Simple: will serve static files from the application's root 
14 #                 directory
15
16 use parent qw/Catalyst/;
17
18 our $VERSION = '0.01';
19
20 # Configure the application. 
21 #
22 # Note that settings in ndweb.yml (or other external
23 # configuration file that you set up manually) take precedence
24 # over this when using ConfigLoader. Thus configuration
25 # details given here can function as a default configuration,
26 # with a external configuration file acting as an override for
27 # local deployment.
28
29 __PACKAGE__->config( name => 'NDWeb' );
30 __PACKAGE__->config->{'Plugin::Authentication'}{'use_session'} = 1;
31
32
33
34 # Start the application
35 __PACKAGE__->setup(qw/
36         -Debug
37         ConfigLoader
38         Static::Simple
39
40         Authentication
41         Authentication::Store::NDWeb
42         Authentication::Credential::Password
43
44         Authorization::Roles
45         Authorization::ACL
46         
47         Session
48         Session::Store::File
49         Session::State::Cookie
50         /);
51
52 =head1 NAME
53
54 NDWeb - Catalyst based application
55
56 =head1 SYNOPSIS
57
58     script/ndweb_server.pl
59
60 =head1 DESCRIPTION
61
62 [enter your description here]
63
64 =head1 SEE ALSO
65
66 L<NDWeb::Controller::Root>, L<Catalyst>
67
68 =head1 AUTHOR
69
70 Catalyst developer
71
72 =head1 LICENSE
73
74 This library is free software, you can redistribute it and/or modify
75 it under the same terms as Perl itself.
76
77 =cut
78
79 1;