Skip to content

Commit

Permalink
Fixing Issue zfcampus#101
Browse files Browse the repository at this point in the history
  • Loading branch information
MassiAtZend committed Oct 14, 2015
1 parent fba9aaa commit 13a25cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Authentication/HttpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +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();
}
/**
* With or without credential we call the authentication service.
* In case of no credentials the service should trigger the authentication
* challenge according to the configured method (Basic or Digest)
*/

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

0 comments on commit 13a25cb

Please sign in to comment.