mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 10:18:55 +05:30
Fixed SQL to get a session\'s scopes
This commit is contained in:
parent
b6d99abcb0
commit
22dcef33da
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user