ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAuthWeb Class Reference

Web based authentication More...

+ Inheritance diagram for ilAuthWeb:
+ Collaboration diagram for ilAuthWeb:

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_addition_options=array())
 Contructor. More...
 
 login ()
 

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

Web based authentication

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$id$

Definition at line 31 of file class.ilAuthWeb.php.

Constructor & Destructor Documentation

◆ __construct()

ilAuthWeb::__construct (   $a_container,
  $a_addition_options = array() 
)

Contructor.

Returns
Parameters
object$a_container
object$a_addition_options,[optional]

Definition at line 49 of file class.ilAuthWeb.php.

50  {
51  parent::__construct($a_container, $a_addition_options, '', false);
52  $this->setSessionName("_authhttp" . md5(CLIENT_ID));
53 
54  $this->initAuth();
55  }

Member Function Documentation

◆ login()

ilAuthWeb::login ( )

Definition at line 60 of file class.ilAuthWeb.php.

References AUTH_CAPTCHA_INVALID.

61  {
62  $this->_loadStorage();
63 
64  if (
65  !empty($this->username) &&
66  'anonymous' != $this->username &&
67  $this->storage->supportsCaptchaVerification()
68  ) {
69  require_once 'Services/Captcha/classes/class.ilCaptchaUtil.php';
70  if (ilCaptchaUtil::isActiveForLogin()) {
71  require_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
72  require_once 'Services/Captcha/classes/class.ilCaptchaInputGUI.php';
73  $captcha = new ilCaptchaInputGUI('', 'captcha_code');
74  $captcha->setRequired(true);
75  if (!$captcha->checkInput()) {
76  $this->log('Captcha verification failed');
77  $this->status = AUTH_CAPTCHA_INVALID;
78  return;
79  }
80  }
81  }
82 
83  parent::login();
84  }
This class represents a captcha input in a property form.
const AUTH_CAPTCHA_INVALID

◆ supportsRedirects()

ilAuthWeb::supportsRedirects ( )

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

Returns

Definition at line 38 of file class.ilAuthWeb.php.

39  {
40  return true;
41  }

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