3 * Piwik - Open source web analytics
5 * @link http://piwik.org
6 * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
7 * @version $Id: ExamplePlugin.php 838 2008-12-17 17:26:15Z matt $
9 * @package Piwik_CASLogin
12 require PIWIK_INCLUDE_PATH . '/plugins/CASLogin/Auth.php';
14 class Piwik_CASLogin extends Piwik_Plugin
16 public function getInformation()
19 'name' => 'CAS Login',
20 'description' => 'CAS Login plugin. It uses JA-SIG Central Authentication Services to authenticate users and grant them access to piwik.',
22 'homepage' => 'http://dev.piwik.org/trac/ticket/598/',
27 function getListHooksRegistered()
30 'FrontController.initAuthenticationObject' => 'initAuthenticationObject',
35 function initAuthenticationObject($notification)
37 set_include_path(get_include_path() . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins/CASLogin/CAS');
38 require_once('CAS/CAS.php');
39 $auth = new Piwik_CASLogin_Auth();
40 Zend_Registry::set('auth', $auth);