diff --git a/src/Exception/OAuthException.php b/src/Exception/OAuthException.php index dd9ad62d..3678984b 100644 --- a/src/Exception/OAuthException.php +++ b/src/Exception/OAuthException.php @@ -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 {