ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilAuthFrontendCredentialsHTTP Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 initFromRequest ()
 Init credentials from request. More...
 
- Public Member Functions inherited from ilAuthFrontendCredentials
 __construct ()
 
 setUsername (string $a_name)
 Set username. More...
 
 getUsername ()
 Get username. More...
 
 setPassword (string $a_password)
 Set password. More...
 
 getPassword ()
 Get password. More...
 
 setAuthMode (string $a_auth_mode)
 Set auth mode. More...
 
 getAuthMode ()
 Get auth mode. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 27 of file class.ilAuthFrontendCredentialsHTTP.php.

Member Function Documentation

◆ initFromRequest()

ilAuthFrontendCredentialsHTTP::initFromRequest ( )

Init credentials from request.

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

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

32  : void
33  {
34  $this->setUsername($_SERVER['PHP_AUTH_USER']);
35  $this->setPassword($_SERVER['PHP_AUTH_PW']);
36  }
setPassword(string $a_password)
Set password.
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
setUsername(string $a_name)
Set username.
+ Here is the call graph for this function:

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