mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-01 01:40:21 +05:30
Fixed variable reference bug
This commit is contained in:
parent
bfab30061e
commit
c17cd7b1cc
@ -174,10 +174,7 @@ class Server
|
|||||||
// Get and validate scopes
|
// Get and validate scopes
|
||||||
if (isset($authParams['scope']) || isset($_GET['scope'])) {
|
if (isset($authParams['scope']) || isset($_GET['scope'])) {
|
||||||
|
|
||||||
$scopes = $_GET['scope'];
|
$scopes = (isset($_GET['scope'])) ? $_GET['scope'] : $authParams['scope'];
|
||||||
if (isset($authParams['client_id'])) {
|
|
||||||
$authParams['scope'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$scopes = explode($this->config['scope_delimeter'], $scopes);
|
$scopes = explode($this->config['scope_delimeter'], $scopes);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user