X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=stemmaweb%2Flib%2Fstemmaweb.pm;h=b2f68e82e3ea5f175e73fb7a2be3c4cca489a40c;hb=d1ba091f9e2db1d9f927b319be798f2d865f8acc;hp=94121c131ec1285705b981273326f4283972bef6;hpb=2006bd3fc1654b2355d3b7fa3261bdb4f2085e94;p=scpubgit%2Fstemmatology.git diff --git a/stemmaweb/lib/stemmaweb.pm b/stemmaweb/lib/stemmaweb.pm index 94121c1..b2f68e8 100644 --- a/stemmaweb/lib/stemmaweb.pm +++ b/stemmaweb/lib/stemmaweb.pm @@ -4,6 +4,10 @@ use namespace::autoclean; use Catalyst::Runtime 5.80; +use Search::GIN::Extract::Class; +use Search::GIN::Extract::Attributes; +use Search::GIN::Extract::Multiplex; + # Set flags and add plugins for the application. # # Note that ORDERING IS IMPORTANT here as plugins are initialized in order, @@ -20,6 +24,11 @@ use Catalyst qw/ ConfigLoader Static::Simple Unicode::Encoding + +CatalystX::SimpleLogin + Authentication + Session + Session::Store::File + Session::State::Cookie /; extends 'Catalyst'; @@ -48,6 +57,20 @@ __PACKAGE__->config( stemmaweb->path_to( 'root', 'src' ), ], }, + ## kiokudb auth store testing + 'Plugin::Authentication' => { + default => { + credential => { + class => 'Password', + password_field => 'password', + password_type => 'self_check', + }, + store => { + class => 'Model::KiokuDB', + model_name => 'User', + }, + } + }, ); # Start the application