ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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?>
An exception for terminatinating execution or to throw for unit testing.
@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....