ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
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 ?>