13 'Authorization' =>
'Bearer 12345'
30 $this->assertNull($bearer->getToken());
37 'Authorization' =>
'QBearer 12345'
41 $this->assertNull($bearer->getToken());
50 $bearer->requireLogin();
52 $this->assertEquals(
'Bearer realm="Dagger"',
$response->getHeader(
'WWW-Authenticate'));
53 $this->assertEquals(401,
$response->getStatus());
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
testGetCredentialsNotBearer()
testGetCredentialsNoheader()
HTTP Bearer authentication utility.
The Request class represents a single HTTP request.
This class represents a single HTTP response.