mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
In Resource::getExceptionHttpHeaders() use Request::BuildFromGlobals
This commit is contained in:
parent
31e03c2d36
commit
49b776c495
@ -165,7 +165,7 @@ class Resource
|
||||
// @codeCoverageIgnoreStart
|
||||
if ($error === 'invalid_token') {
|
||||
$authScheme = null;
|
||||
$request = new Request();
|
||||
$request = Request::buildFromGlobals();
|
||||
if ($request->server('PHP_AUTH_USER') !== null) {
|
||||
$authScheme = 'Basic';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user