3 use namespace::autoclean;
5 use Catalyst::Runtime 5.80;
7 use Search::GIN::Extract::Class;
8 use Search::GIN::Extract::Attributes;
9 use Search::GIN::Extract::Multiplex;
11 # Set flags and add plugins for the application.
13 # Note that ORDERING IS IMPORTANT here as plugins are initialized in order,
14 # therefore you almost certainly want to keep ConfigLoader at the head of the
15 # list if you're using it.
17 # -Debug: activates the debug mode for very useful log messages
18 # ConfigLoader: will load the configuration from a Config::General file in the
19 # application's home directory
20 # Static::Simple: will serve static files from the application's root
29 Session::State::Cookie
36 our $VERSION = '0.01';
38 # Configure the application.
40 # Note that settings in stemmaweb.conf (or other external
41 # configuration file that you set up manually) take precedence
42 # over this when using ConfigLoader. Thus configuration
43 # details given here can function as a default configuration,
44 # with an external configuration file acting as an override for
49 # Disable deprecated behavior needed by old applications
50 disable_component_resolution_regex_fallback => 1,
51 # Set Unicode as the default
55 expose_stash => 'result',
59 stemmaweb->path_to( 'root', 'src' ),
62 ## kiokudb auth store testing
63 'Plugin::Authentication' => {
64 form_handler => '+stemmaweb::Authentication::FormHandler',
68 password_field => 'password',
69 password_type => 'self_check',
72 class => 'Model::KiokuDB',
73 model_name => 'Directory',
79 extensions => ['http://openid.net/srv/ax/1.0' =>
82 uri => 'http://openid.net/srv/ax/1.0',
83 mode => 'fetch_request',
85 'type.email' => 'http://axschema.org/contact/email',
87 # email => 'http://axschema.org/contact/email'
93 class => 'Model::KiokuDB',
94 model_name => 'Directory',
96 auto_create_user => 1,
100 class => '+stemmaweb::Authentication::Credential::Google',
103 class => 'Model::KiokuDB',
104 model_name => 'Directory',
108 ## Auth with CatalystX::Controller::Auth
109 'Controller::Users' => {
111 login_id_field => 'username',
112 login_db_field => 'username',
113 action_after_login => '/users/success',
114 action_after_register => '/users/success',
115 enable_sending_register_email => 0,
116 register_email_from => '"Stemmaweb" <stemmaweb@byzantini.st>',
117 register_email_subject => 'Registration to stemmaweb',
118 register_email_template_plain => 'register-plain.tt',
120 login_fields => { openid => [qw/openid_identifier/],
121 default => [qw/username password remember/],
122 google => [qw/email id_token/],
125 'View::Email::Template' => {
126 stash_key => 'email_template',
130 pub_key => '6LfR19MSAAAAACy2meHvLfZGRn3PM2rRYIAfh665',
131 priv_key => '6LfR19MSAAAAAMlQb8BdyecWNRE1bAL2YSgz2sah',
135 # Start the application
136 __PACKAGE__->setup();
141 stemmaweb - Catalyst based application
145 script/stemmaweb_server.pl
149 [enter your description here]
153 L<stemmaweb::Controller::Root>, L<Catalyst>
161 This library is free software. You can redistribute it and/or modify
162 it under the same terms as Perl itself.