From 90508a191d09e451f68fc24972a587c7728fd9a7 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 May 2013 18:14:27 +0100 Subject: [PATCH] Get scopes by access token instead of session ID --- src/OAuth2/ResourceServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2/ResourceServer.php b/src/OAuth2/ResourceServer.php index 59219a0d..c70f67b0 100644 --- a/src/OAuth2/ResourceServer.php +++ b/src/OAuth2/ResourceServer.php @@ -177,7 +177,7 @@ class ResourceServer $this->ownerType = $result['owner_type']; $this->ownerId = $result['owner_id']; - $this->sessionScopes = $this->storages['session']->getScopes($this->sessionId); + $this->sessionScopes = $this->storages['session']->getScopes($this->accessToken); return true; }