ConfigLoader
Static::Simple
Unicode::Encoding
- +CatalystX::SimpleLogin
Authentication
Session
Session::Store::File
Session::State::Cookie
+ StatusMessage
+ StackTrace
/;
extends 'Catalyst';
},
store => {
class => 'Model::KiokuDB',
- model_name => 'User',
+ model_name => 'Directory',
},
- }
+ },
+ openid => {
+ credential => {
+ class => 'OpenID',
+ extensions => ['http://openid.net/srv/ax/1.0' =>
+ {
+ ns => 'ax',
+ uri => 'http://openid.net/srv/ax/1.0',
+ mode => 'fetch_request',
+ required => 'email',
+ 'type.email' => 'http://axschema.org/contact/email',
+ # type => {
+ # email => 'http://axschema.org/contact/email'
+ # }
+ }
+ ],
+ },
+ store => {
+ class => 'Model::KiokuDB',
+ model_name => 'Directory',
+ },
+ auto_create_user => 1,
+ },
+ },
+ ## Auth with CatalystX::Controller::Auth
+ 'Controller::Users' => {
+ model => 'User',
+ login_id_field => 'username',
+ login_db_field => 'username',
+ action_after_login => '/users/success',
+ action_after_register => '/users/success',
+ enable_sending_register_email => 0,
+ register_email_from => '"Stemmaweb" <stemmaweb@byzantini.st>',
+ register_email_subject => 'Registration to stemmaweb',
+ register_email_template_plain => 'register-plain.tt',
+ realm => 'default',
+ login_fields => { openid => [qw/openid_identifier/],
+ default => [qw/username password remember/],
+ },
+ },
+ 'View::Email::Template' => {
+ stash_key => 'email_template',
+ },
+
+ recaptcha => {
+ pub_key => '6LfR19MSAAAAACy2meHvLfZGRn3PM2rRYIAfh665',
+ priv_key => '6LfR19MSAAAAAMlQb8BdyecWNRE1bAL2YSgz2sah',
},
);