Fixed SQL to get a session\'s scopes

This commit is contained in:
Alex Bilbie 2013-02-21 17:42:30 +00:00
parent b6d99abcb0
commit 22dcef33da

View File

@ -227,8 +227,8 @@ interface SessionInterface
* <code> * <code>
* SELECT oauth_scopes.scope, oauth_scopes.name, oauth_scopes.description * SELECT oauth_scopes.scope, oauth_scopes.name, oauth_scopes.description
* FROM oauth_session_scopes JOIN oauth_scopes ON * FROM oauth_session_scopes JOIN oauth_scopes ON
* oauth_session_scopes.scope = oauth_scopes.scope * oauth_session_scopes.scope_id = oauth_scopes.id WHERE
* WHERE access_token = $accessToken * session_id = $sessionId
* </code> * </code>
* *
* Response: * Response:
@ -245,8 +245,8 @@ interface SessionInterface
* ) * )
* </code> * </code>
* *
* @param string $accessToken The access token * @param int $sessionId The session ID
* @return array * @return array
*/ */
public function getScopes($accessToken); public function getScopes($sessionId);
} }