mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-28 01:32:07 +05:30
commit
1ad44d1ce0
@ -122,7 +122,7 @@ class OAuthException extends \Exception
|
|||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
if ($this->errorType === 'invalid_client') {
|
if ($this->errorType === 'invalid_client') {
|
||||||
$authScheme = null;
|
$authScheme = null;
|
||||||
$request = new Request();
|
$request = Request::createFromGlobals();
|
||||||
if ($request->getUser() !== null) {
|
if ($request->getUser() !== null) {
|
||||||
$authScheme = 'Basic';
|
$authScheme = 'Basic';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user