ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 include_once 'Auth.php';
5 
6 
14 class 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  $this->username = $PHPCAS_CLIENT->getUser();
47  }
48  }
49 }
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...
Create styles array
The data for the language used.