mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Spacing fixes and fixed sessionScopes() example query
This commit is contained in:
parent
21f48c0491
commit
fead044830
@ -6,17 +6,17 @@ interface Database
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Validate an access token and return the session details.
|
* Validate an access token and return the session details.
|
||||||
*
|
*
|
||||||
* Database query:
|
* Database query:
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* SELECT id, owner_type, owner_id FROM oauth_sessions WHERE access_token =
|
* SELECT id, owner_type, owner_id FROM oauth_sessions WHERE access_token =
|
||||||
* $accessToken AND stage = 'granted' AND
|
* $accessToken AND stage = 'granted' AND
|
||||||
* access_token_expires > UNIX_TIMESTAMP(now())
|
* access_token_expires > UNIX_TIMESTAMP(now())
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* Response:
|
* Response:
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* Array
|
* Array
|
||||||
* (
|
* (
|
||||||
@ -25,7 +25,7 @@ interface Database
|
|||||||
* [owner_id] => (string) The session owner's ID
|
* [owner_id] => (string) The session owner's ID
|
||||||
* )
|
* )
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $accessToken The access token
|
* @param string $accessToken The access token
|
||||||
* @return array|bool Return an array on success or false on failure
|
* @return array|bool Return an array on success or false on failure
|
||||||
*/
|
*/
|
||||||
@ -33,16 +33,16 @@ interface Database
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the scopes that the session is authorised with.
|
* Returns the scopes that the session is authorised with.
|
||||||
*
|
*
|
||||||
* Database query:
|
* Database query:
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* SELECT scope FROM oauth_session_scopes WHERE access_token =
|
* SELECT scope FROM oauth_session_scopes WHERE session_id =
|
||||||
* '291dca1c74900f5f252de351e0105aa3fc91b90b'
|
* $sessionId
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* Response:
|
* Response:
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* Array
|
* Array
|
||||||
* (
|
* (
|
||||||
@ -51,7 +51,7 @@ interface Database
|
|||||||
* ...
|
* ...
|
||||||
* )
|
* )
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param int $sessionId The session ID
|
* @param int $sessionId The session ID
|
||||||
* @return array A list of scopes
|
* @return array A list of scopes
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user