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
30 Session::State::Cookie
37 our $VERSION = '0.01';
39 # Configure the application.
41 # Note that settings in stemmaweb.conf (or other external
42 # configuration file that you set up manually) take precedence
43 # over this when using ConfigLoader. Thus configuration
44 # details given here can function as a default configuration,
45 # with an external configuration file acting as an override for
50 # Disable deprecated behavior needed by old applications
51 disable_component_resolution_regex_fallback => 1,
54 expose_stash => 'result',
58 stemmaweb->path_to( 'root', 'src' ),
61 ## kiokudb auth store testing
62 'Plugin::Authentication' => {
66 password_field => 'password',
67 password_type => 'self_check',
70 class => 'Model::KiokuDB',
71 model_name => 'Directory',
77 extensions => ['http://openid.net/srv/ax/1.0' =>
80 uri => 'http://openid.net/srv/ax/1.0',
81 mode => 'fetch_request',
83 'type.email' => 'http://axschema.org/contact/email',
85 # email => 'http://axschema.org/contact/email'
91 class => 'Model::KiokuDB',
92 model_name => 'Directory',
94 auto_create_user => 1,
97 ## Auth with CatalystX::Controller::Auth
98 'Controller::Users' => {
100 login_id_field => 'username',
101 login_db_field => 'username',
102 action_after_login => '/index',
103 send_register_email => 0,
105 login_fields => { openid => [qw/openid_identifier/],
106 default => [qw/username password remember/],
111 # Start the application
112 __PACKAGE__->setup();
117 stemmaweb - Catalyst based application
121 script/stemmaweb_server.pl
125 [enter your description here]
129 L<stemmaweb::Controller::Root>, L<Catalyst>
137 This library is free software. You can redistribute it and/or modify
138 it under the same terms as Perl itself.