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 namespace Piwik\Plugins\CASLogin;
16 require PIWIK_INCLUDE_PATH . '/plugins/CASLogin/Auth.php';
18 class CASLogin extends \Piwik\Plugin
20 public function getInformation()
23 'name' => 'CAS Login',
24 'description' => 'CAS Login plugin. It uses JA-SIG Central Authentication Services to authenticate users and grant them access to piwik.',
26 'homepage' => 'http://dev.piwik.org/trac/ticket/598/',
31 function getListHooksRegistered()
34 'Request.initAuthenticationObject' => 'initAuthenticationObject',
39 function initAuthenticationObject()
41 set_include_path(get_include_path() . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins/CASLogin/CAS');
42 require_once('CAS/CAS.php');
44 \Piwik\Registry::set('auth', $auth);