diff --git a/src/OAuth2/ResourceServer.php b/src/OAuth2/ResourceServer.php index b30cd32e..f9e51fc5 100644 --- a/src/OAuth2/ResourceServer.php +++ b/src/OAuth2/ResourceServer.php @@ -177,7 +177,10 @@ class ResourceServer $this->ownerType = $result['owner_type']; $this->ownerId = $result['owner_id']; - $this->sessionScopes = $this->storages['session']->getScopes($this->accessToken); + $sessionScopes = $this->storages['session']->getScopes($this->accessToken); + foreach ($sessionScopes as $scope) { + $this->sessionScopes[] = $scope['key']; + } return true; }