X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstemmaweb.pm;h=1a9da7ded5b1fe35504f998c1ca574f9928a3bd2;hb=715104f10a2e7e000b007a2d42cfb96c37e46292;hp=4a8f77a138844c63a0227e8ca428584bce759aa1;hpb=532cc23bba52829b6205df42f39294949bc5a3db;p=scpubgit%2Fstemmaweb.git diff --git a/lib/stemmaweb.pm b/lib/stemmaweb.pm index 4a8f77a..1a9da7d 100644 --- a/lib/stemmaweb.pm +++ b/lib/stemmaweb.pm @@ -33,6 +33,8 @@ use Catalyst qw/ extends 'Catalyst'; +use stemmaweb::Authentication::FormHandler; + our $VERSION = '0.01'; # Configure the application. @@ -94,9 +96,20 @@ __PACKAGE__->config( }, auto_create_user => 1, }, + google => { + credential => { + class => '+stemmaweb::Authentication::Credential::Google', + }, + store => { + class => 'Model::KiokuDB', + model_name => 'Directory', + }, + auto_create_user => 1, + }, }, ## Auth with CatalystX::Controller::Auth 'Controller::Users' => { + form_handler => 'stemmaweb::Authentication::FormHandler', model => 'User', login_id_field => 'username', login_db_field => 'username', @@ -109,6 +122,7 @@ __PACKAGE__->config( realm => 'default', login_fields => { openid => [qw/openid_identifier/], default => [qw/username password remember/], + google => [qw/email id_token/], }, }, 'View::Email::Template' => {