mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 02:08:56 +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