ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Apache.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAV\Auth\Backend;
4 
7 
20 class 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 }
check(RequestInterface $request, ResponseInterface $response)
When this method is called, the backend must check if authentication was successful.
Definition: Apache.php:57
This interface represents a HTTP response.
The RequestInterface represents a HTTP request.
Apache authenticator.
Definition: Apache.php:20
foreach($paths as $path) $request
Definition: asyncclient.php:32
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
getRawServerValue($valueName)
Returns an item from the _SERVER array.
This is the base class for any authentication object.
$response