ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AbstractAuth.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\HTTP\Auth
;
4
5
use
Sabre\HTTP\RequestInterface
;
6
use
Sabre\HTTP\ResponseInterface
;
7
17
abstract
class
AbstractAuth
{
18
24
protected
$realm
;
25
31
protected
$request
;
32
38
protected
$response
;
39
46
function
__construct
(
$realm
=
'SabreTooth'
,
RequestInterface
$request
,
ResponseInterface
$response
) {
47
48
$this->realm =
$realm
;
49
$this->request =
$request
;
50
$this->response =
$response
;
51
52
}
53
60
abstract
function
requireLogin
();
61
67
function
getRealm
() {
68
69
return
$this->realm
;
70
71
}
72
73
}
Sabre\HTTP\ResponseInterface
This interface represents a HTTP response.
Definition:
ResponseInterface.php:12
Sabre\HTTP\RequestInterface
The RequestInterface represents a HTTP request.
Definition:
RequestInterface.php:12
ResponseInterface
Sabre\HTTP\Auth
Definition:
AbstractAuth.php:3
Sabre\HTTP\Auth\AbstractAuth\$response
$response
Definition:
AbstractAuth.php:38
Sabre\HTTP\Auth\AbstractAuth\$request
$request
Definition:
AbstractAuth.php:31
Sabre\HTTP\Auth\AbstractAuth\requireLogin
requireLogin()
This method sends the needed HTTP header and statuscode (401) to force the user to login...
Sabre\HTTP\Auth\AbstractAuth\$realm
$realm
Definition:
AbstractAuth.php:24
Sabre\HTTP\Auth\AbstractAuth
HTTP Authentication base class.
Definition:
AbstractAuth.php:17
RequestInterface
Sabre\HTTP\Auth\AbstractAuth\__construct
__construct($realm='SabreTooth', RequestInterface $request, ResponseInterface $response)
Creates the object.
Definition:
AbstractAuth.php:46
Sabre\HTTP\Auth\AbstractAuth\getRealm
getRealm()
Returns the HTTP realm.
Definition:
AbstractAuth.php:67
php
libs
composer
vendor
sabre
http
lib
Auth
AbstractAuth.php
Generated on Thu Feb 27 2025 19:01:30 for ILIAS by
1.8.13 (using
Doxyfile
)