From 22dcef33daf54f5e6e1a9708cd32f101c9f94018 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Thu, 21 Feb 2013 17:42:30 +0000 Subject: [PATCH] Fixed SQL to get a session\'s scopes --- src/OAuth2/Storage/SessionInterface.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OAuth2/Storage/SessionInterface.php b/src/OAuth2/Storage/SessionInterface.php index 9878e822..4d1b3fdc 100644 --- a/src/OAuth2/Storage/SessionInterface.php +++ b/src/OAuth2/Storage/SessionInterface.php @@ -227,8 +227,8 @@ interface SessionInterface * * SELECT oauth_scopes.scope, oauth_scopes.name, oauth_scopes.description * FROM oauth_session_scopes JOIN oauth_scopes ON - * oauth_session_scopes.scope = oauth_scopes.scope - * WHERE access_token = $accessToken + * oauth_session_scopes.scope_id = oauth_scopes.id WHERE + * session_id = $sessionId * * * Response: @@ -245,8 +245,8 @@ interface SessionInterface * ) * * - * @param string $accessToken The access token + * @param int $sessionId The session ID * @return array */ - public function getScopes($accessToken); + public function getScopes($sessionId); }