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

HTTP auth credentials. More...

+ Inheritance diagram for ilAuthFrontendCredentialsHTTP:
+ Collaboration diagram for ilAuthFrontendCredentialsHTTP:

Public Member Functions

 __construct ()
 Constructor. More...
 
 initFromRequest ()
 Init credentials from request. More...
 
- Public Member Functions inherited from ilAuthFrontendCredentials
 __construct ()
 
 getLogger ()
 Get logger. More...
 
 setLogger (ilLogger $logger)
 Set Logger. More...
 
 setUsername ($a_name)
 Set username. More...
 
 getUsername ()
 Get username. More...
 
 setPassword ($a_password)
 Set password. More...
 
 getPassword ()
 Get password. More...
 
 setCaptchaCode ($a_code)
 Set captcha code. More...
 
 getCaptchaCode ()
 Get captcha code. More...
 
 setAuthMode ($a_auth_mode)
 Set auth mode. More...
 
 getAuthMode ()
 Get auth mode. More...
 

Private Attributes

 $settings = null
 

Detailed Description

HTTP auth credentials.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilAuthFrontendCredentialsHTTP::__construct ( )

Constructor.

Definition at line 22 of file class.ilAuthFrontendCredentialsHTTP.php.

23  {
24  parent::__construct();
25  }

Member Function Documentation

◆ initFromRequest()

ilAuthFrontendCredentialsHTTP::initFromRequest ( )

Init credentials from request.

Definition at line 30 of file class.ilAuthFrontendCredentialsHTTP.php.

References $_SERVER, ilAuthFrontendCredentials\setPassword(), and ilAuthFrontendCredentials\setUsername().

31  {
32  $this->setUsername($_SERVER['PHP_AUTH_USER']);
33  $this->setPassword($_SERVER['PHP_AUTH_PW']);
34  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
setPassword($a_password)
Set password.
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilAuthFrontendCredentialsHTTP::$settings = null
private

Definition at line 16 of file class.ilAuthFrontendCredentialsHTTP.php.


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