96            return [
false, 
"No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured"];
 
  100            return [
false, 
"Bearer token was incorrect"];
 
  102        return [
true, $principalUrl];
 
  134        $auth->requireLogin();
 
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
HTTP Bearer authentication backend class.
setRealm($realm)
Sets the authentication realm for this backend.
validateBearerToken($bearerToken)
Validates a Bearer token.
check(RequestInterface $request, ResponseInterface $response)
When this method is called, the backend must check if authentication was successful.
challenge(RequestInterface $request, ResponseInterface $response)
This method is called when a user could not be authenticated, and authentication was required for the...
HTTP Bearer authentication utility.
This is the base class for any authentication object.
The RequestInterface represents a HTTP request.
This interface represents a HTTP response.