ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAuthCAS.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once 'Auth.php';
5
6
14class ilAuthCAS extends Auth
15{
21 public function supportsRedirects()
22 {
23 return true;
24 }
25
32 public function __construct($a_container,$a_further_options = array())
33 {
34 global $PHPCAS_CLIENT;
35
36 parent::__construct(
37 $a_container,
38 $a_further_options,
39 array($a_container,'forceAuthentication'),
40 true
41 );
42 $this->setSessionName("_authhttp".md5(CLIENT_ID));
43 $this->initAuth();
44
45 if(is_object($PHPCAS_CLIENT) and $PHPCAS_CLIENT->isAuthenticated())
46 {
47 $this->username = $PHPCAS_CLIENT->getUser();
48 }
49
50 }
51}
52?>
setSessionName($name='session')
Set name of the session to a customized value.
Definition: Auth.php:656
initAuth()
Init auth object Enable logging, set callbacks...
@classDescription CAS authentication
__construct($a_container, $a_further_options=array())
Constructor.
supportsRedirects()
Returns true, if the current auth mode allows redirection to e.g to loginScreen, public section....
$PHPCAS_CLIENT
This global variable is used by the interface class phpCAS.
Definition: CAS.php:176