'CAS Login', 'description' => 'CAS Login plugin. It uses JA-SIG Central Authentication Services to authenticate users and grant them access to piwik.', 'author' => 'OW', 'homepage' => 'http://dev.piwik.org/trac/ticket/598/', 'version' => '0.7', ); } function getListHooksRegistered() { $hooks = array( 'Request.initAuthenticationObject' => 'initAuthenticationObject', ); return $hooks; } function initAuthenticationObject() { set_include_path(get_include_path() . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins/CASLogin/CAS'); require_once('CAS/CAS.php'); $auth = new Auth(); \Piwik\Registry::set('auth', $auth); } }