Merge pull request #483 from mikicaivosevic/master

Bug fix
This commit is contained in:
Alex Bilbie 2016-03-23 11:27:41 +00:00
commit 1ad44d1ce0

View File

@ -122,7 +122,7 @@ class OAuthException extends \Exception
// @codeCoverageIgnoreStart
if ($this->errorType === 'invalid_client') {
$authScheme = null;
$request = new Request();
$request = Request::createFromGlobals();
if ($request->getUser() !== null) {
$authScheme = 'Basic';
} else {