Line | |
---|
1 | package LATMOS::Accounts::Web; |
---|
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 Catalyst qw/ |
---|
17 | ConfigLoader |
---|
18 | Static::Simple |
---|
19 | Session |
---|
20 | Session::State::Cookie |
---|
21 | Session::Store::FastMmap |
---|
22 | Authentication |
---|
23 | Prototype |
---|
24 | /; |
---|
25 | |
---|
26 | our $VERSION = '0.0.3'; |
---|
27 | |
---|
28 | # Configure the application. |
---|
29 | # |
---|
30 | # Note that settings in LATMOS::Accounts::Web.yml (or other external |
---|
31 | # configuration file that you set up manually) take precedence |
---|
32 | # over this when using ConfigLoader. Thus configuration |
---|
33 | # details given here can function as a default configuration, |
---|
34 | # with a external configuration file acting as an override for |
---|
35 | # local deployment. |
---|
36 | |
---|
37 | # http://stackoverflow.com/questions/1664816/is-there-a-way-to-force-c-urifor-in-catalyst-to-generate-a-uri-that-begins-wit |
---|
38 | __PACKAGE__->config( using_frontend_proxy => 1 ); |
---|
39 | |
---|
40 | __PACKAGE__->config( name => 'LATMOS::Accounts::Web' ); |
---|
41 | |
---|
42 | __PACKAGE__->config->{'Plugin::Authentication'} = { |
---|
43 | default_realm => 'la', |
---|
44 | realms => { |
---|
45 | la => { |
---|
46 | credential => { |
---|
47 | class => 'La' |
---|
48 | }, |
---|
49 | store => { |
---|
50 | class => 'Null', |
---|
51 | }, |
---|
52 | }, |
---|
53 | }, |
---|
54 | }; |
---|
55 | |
---|
56 | |
---|
57 | # Start the application |
---|
58 | __PACKAGE__->setup; |
---|
59 | |
---|
60 | |
---|
61 | =head1 NAME |
---|
62 | |
---|
63 | LATMOS::Accounts::Web - Catalyst based application |
---|
64 | |
---|
65 | =head1 SYNOPSIS |
---|
66 | |
---|
67 | script/latmos_accounts_web_server.pl |
---|
68 | |
---|
69 | =head1 DESCRIPTION |
---|
70 | |
---|
71 | [enter your description here] |
---|
72 | |
---|
73 | =head1 SEE ALSO |
---|
74 | |
---|
75 | L<LATMOS::Accounts::Web::Controller::Root>, L<Catalyst> |
---|
76 | |
---|
77 | =head1 AUTHOR |
---|
78 | |
---|
79 | Thauvin Olivier |
---|
80 | |
---|
81 | =head1 LICENSE |
---|
82 | |
---|
83 | This library is free software, you can redistribute it and/or modify |
---|
84 | it under the same terms as Perl itself. |
---|
85 | |
---|
86 | =cut |
---|
87 | |
---|
88 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.