ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from SimpleSAML\Utils\Auth
static getAdminLoginURL ($returnTo=null)
 Retrieve a admin login URL. More...
 
static isAdmin ()
 Check whether the current user is admin. More...
 
static requireAdmin ()
 Require admin access to the current page. 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.

References 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  }
Create styles array
The data for the language used.

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: