ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Apache.php
Go to the documentation of this file.
1<?php
2
4
7
20class Apache implements BackendInterface {
21
27 protected $principalPrefix = 'principals/';
28
58
59 $remoteUser = $request->getRawServerValue('REMOTE_USER');
60 if (is_null($remoteUser)) {
61 $remoteUser = $request->getRawServerValue('REDIRECT_REMOTE_USER');
62 }
63 if (is_null($remoteUser)) {
64 return [false, 'No REMOTE_USER property was found in the PHP $_SERVER super-global. This likely means your server is not configured correctly'];
65 }
66
67 return [true, $this->principalPrefix . $remoteUser];
68
69 }
70
93
94 }
95
96}
foreach($paths as $path) $request
Definition: asyncclient.php:32
An exception for terminatinating execution or to throw for unit testing.
Apache authenticator.
Definition: Apache.php:20
challenge(RequestInterface $request, ResponseInterface $response)
This method is called when a user could not be authenticated, and authentication was required for the...
Definition: Apache.php:92
check(RequestInterface $request, ResponseInterface $response)
When this method is called, the backend must check if authentication was successful.
Definition: Apache.php:57
This is the base class for any authentication object.
The RequestInterface represents a HTTP request.
This interface represents a HTTP response.
$response