101 $userpass =
$auth->getCredentials();
103 return [
false,
"No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured"];
106 return [
false,
"Username or password was incorrect"];
108 return [
true, $this->principalPrefix . $userpass[0]];
140 $auth->requireLogin();
This interface represents a HTTP response.
The RequestInterface represents a HTTP request.
setRealm($realm)
Sets the authentication realm for this backend.
challenge(RequestInterface $request, ResponseInterface $response)
This method is called when a user could not be authenticated, and authentication was required for the...
foreach($paths as $path) $request
HTTP Basic authentication backend class.
check(RequestInterface $request, ResponseInterface $response)
When this method is called, the backend must check if authentication was successful.
validateUserPass($username, $password)
Validates a username and password.
This is the base class for any authentication object.
HTTP Basic authentication utility.