Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/94'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 21, 2015
2 parents beea96b + c15b8f0 commit 84e58eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Authentication/HttpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ public function preAuth(Request $request, Response $response)
*/
public function authenticate(Request $request, Response $response, MvcAuthEvent $mvcAuthEvent)
{
if (! $request->getHeader('Authorization', false)) {
// No credentials were present at all, so we just return a guest identity.
return new Identity\GuestIdentity();
}

$this->httpAuth->setRequest($request);
$this->httpAuth->setResponse($response);

Expand Down

0 comments on commit 84e58eb

Please sign in to comment.