ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAuthCAS Class Reference

CAS authentication More...

+ Inheritance diagram for ilAuthCAS:
+ Collaboration diagram for ilAuthCAS:

Public Member Functions

 supportsRedirects ()
 Returns true, if the current auth mode allows redirection to e.g to loginScreen, public section... More...
 
 __construct ($a_container, $a_further_options=array())
 Constructor. More...
 

Detailed Description

CAS authentication

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 14 of file class.ilAuthCAS.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthCAS::__construct (   $a_container,
  $a_further_options = array() 
)

Constructor.

Parameters
object$container
arrayfurther options Not used in the moment

Definition at line 32 of file class.ilAuthCAS.php.

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  }

Member Function Documentation

◆ supportsRedirects()

ilAuthCAS::supportsRedirects ( )

Returns true, if the current auth mode allows redirection to e.g to loginScreen, public section...

Returns

Definition at line 21 of file class.ilAuthCAS.php.

22  {
23  return true;
24  }

The documentation for this class was generated from the following file: