This commit is contained in:
Mikica Ivosevic 2016-03-23 12:08:45 +01:00
parent 3ad97b4ef4
commit b480373249

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 {