Added getAuthCodeScopes() method

This commit is contained in:
Alex Bilbie 2013-05-10 16:50:34 -07:00
parent accb80289f
commit 9372cc85d0

View File

@ -254,6 +254,36 @@ interface SessionInterface
* @return void
*/
public function associateAuthCodeScope($sessionId, $scopeId);
/**
* Get the scopes associated with an auth code
*
* Example SQL query:
*
* <code>
* SELECT scope_id FROM `oauth_session_authcode_scopes` WHERE session_id = :sessionId
* </code>
*
* Expected response:
*
* <code>
* array(
* array(
* 'scope_id' => (int)
* ),
* array(
* 'scope_id' => (int)
* ),
* ...
* )
* </code>
*
* @param int $sessionId The session ID
* @return array
*/
public function getAuthCodeScopes($sessionId);
/**
* Associate a scope with an access token
*
* Example SQL query: