ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AbstractAuth.php
Go to the documentation of this file.
1<?php
2
4
7
17abstract class AbstractAuth {
18
24 protected $realm;
25
31 protected $request;
32
38 protected $response;
39
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}
An exception for terminatinating execution or to throw for unit testing.
HTTP Authentication base class.
requireLogin()
This method sends the needed HTTP header and statuscode (401) to force the user to login.
__construct($realm='SabreTooth', RequestInterface $request, ResponseInterface $response)
Creates the object.
getRealm()
Returns the HTTP realm.
The RequestInterface represents a HTTP request.
This interface represents a HTTP response.