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

Commit bb5a961

Browse files
committed
Merge branch 'hotfix/94' into develop
Forward port #94
2 parents 1e3d27e + c15b8f0 commit bb5a961

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Authentication/HttpAdapter.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ public function preAuth(Request $request, Response $response)
120120
*/
121121
public function authenticate(Request $request, Response $response, MvcAuthEvent $mvcAuthEvent)
122122
{
123+
if (! $request->getHeader('Authorization', false)) {
124+
// No credentials were present at all, so we just return a guest identity.
125+
return new Identity\GuestIdentity();
126+
}
127+
123128
$this->httpAuth->setRequest($request);
124129
$this->httpAuth->setResponse($response);
125130

0 commit comments

Comments
 (0)