mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-08 21:14:00 +05:30
bug fix
This commit is contained in:
parent
3ad97b4ef4
commit
b480373249
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user