ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\HTTP\Auth\AbstractAuth Class Reference

HTTP Authentication base class. More...

+ Inheritance diagram for Sabre\HTTP\Auth\AbstractAuth:
+ Collaboration diagram for Sabre\HTTP\Auth\AbstractAuth:

Public Member Functions

 __construct ($realm='SabreTooth', RequestInterface $request, ResponseInterface $response)
 Creates the object. More...
 
 requireLogin ()
 This method sends the needed HTTP header and statuscode (401) to force the user to login. More...
 
 getRealm ()
 Returns the HTTP realm. More...
 

Protected Attributes

 $realm
 
 $request
 
 $response
 

Detailed Description

HTTP Authentication base class.

This class provides some common functionality for the various base classes.

Author
Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License

Definition at line 17 of file AbstractAuth.php.

Constructor & Destructor Documentation

◆ __construct()

Sabre\HTTP\Auth\AbstractAuth::__construct (   $realm = 'SabreTooth',
RequestInterface  $request,
ResponseInterface  $response 
)

Creates the object.

Parameters
string$realm
Returns
void

Definition at line 46 of file AbstractAuth.php.

References Sabre\HTTP\Auth\AbstractAuth\$realm, Sabre\HTTP\Auth\AbstractAuth\$request, Sabre\HTTP\Auth\AbstractAuth\$response, and Sabre\HTTP\Auth\AbstractAuth\requireLogin().

46  {
47 
48  $this->realm = $realm;
49  $this->request = $request;
50  $this->response = $response;
51 
52  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getRealm()

Sabre\HTTP\Auth\AbstractAuth::getRealm ( )

Returns the HTTP realm.

Returns
string

Definition at line 67 of file AbstractAuth.php.

References Sabre\HTTP\Auth\AbstractAuth\$realm.

67  {
68 
69  return $this->realm;
70 
71  }

◆ requireLogin()

Sabre\HTTP\Auth\AbstractAuth::requireLogin ( )
abstract

This method sends the needed HTTP header and statuscode (401) to force the user to login.

Returns
void

Referenced by Sabre\HTTP\Auth\AbstractAuth\__construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $realm

Sabre\HTTP\Auth\AbstractAuth::$realm
protected

◆ $request

Sabre\HTTP\Auth\AbstractAuth::$request
protected

Definition at line 31 of file AbstractAuth.php.

Referenced by Sabre\HTTP\Auth\AbstractAuth\__construct().

◆ $response

Sabre\HTTP\Auth\AbstractAuth::$response
protected

Definition at line 38 of file AbstractAuth.php.

Referenced by Sabre\HTTP\Auth\AbstractAuth\__construct().


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