diff --git a/src/Oauth2/Authentication/Server.php b/src/Oauth2/Authentication/Server.php index 7a88b9c9..d5d7e764 100644 --- a/src/Oauth2/Authentication/Server.php +++ b/src/Oauth2/Authentication/Server.php @@ -174,10 +174,7 @@ class Server // Get and validate scopes if (isset($authParams['scope']) || isset($_GET['scope'])) { - $scopes = $_GET['scope']; - if (isset($authParams['client_id'])) { - $authParams['scope']; - } + $scopes = (isset($_GET['scope'])) ? $_GET['scope'] : $authParams['scope']; $scopes = explode($this->config['scope_delimeter'], $scopes);