mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Added refresh token params and examples
This commit is contained in:
parent
6eeb7e13e4
commit
2545ea7dc1
@ -56,18 +56,19 @@ interface Database
|
|||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* INSERT INTO oauth_sessions (client_id, redirect_uri, owner_type,
|
* INSERT INTO oauth_sessions (client_id, redirect_uri, owner_type,
|
||||||
* owner_id, auth_code, access_token, stage, first_requested, last_updated)
|
* owner_id, auth_code, access_token, refresh_token, stage, first_requested,
|
||||||
* VALUES ($clientId, $redirectUri, $type, $typeId, $authCode,
|
* last_updated) VALUES ($clientId, $redirectUri, $type, $typeId, $authCode,
|
||||||
* $accessToken, $stage, UNIX_TIMESTAMP(NOW()), UNIX_TIMESTAMP(NOW()))
|
* $accessToken, $stage, UNIX_TIMESTAMP(NOW()), UNIX_TIMESTAMP(NOW()))
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $clientId The client ID
|
* @param string $clientId The client ID
|
||||||
* @param string $redirectUri The redirect URI
|
* @param string $redirectUri The redirect URI
|
||||||
* @param string $type The session owner's type (default = "user")
|
* @param string $type The session owner's type (default = "user")
|
||||||
* @param string $typeId The session owner's ID (default = "null")
|
* @param string $typeId The session owner's ID (default = "null")
|
||||||
* @param string $authCode The authorisation code (default = "null")
|
* @param string $authCode The authorisation code (default = "null")
|
||||||
* @param string $accessToken The access token (default = "null")
|
* @param string $accessToken The access token (default = "null")
|
||||||
* @param string $stage The stage of the session (default ="request")
|
* @param string $refreshToken The refresh token (default = "null")
|
||||||
|
* @param string $stage The stage of the session (default ="request")
|
||||||
* @return int The session ID
|
* @return int The session ID
|
||||||
*/
|
*/
|
||||||
public function newSession(
|
public function newSession(
|
||||||
@ -93,10 +94,11 @@ interface Database
|
|||||||
* id = $sessionId
|
* id = $sessionId
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $sessionId The session ID
|
* @param string $sessionId The session ID
|
||||||
* @param string $authCode The authorisation code (default = "null")
|
* @param string $authCode The authorisation code (default = "null")
|
||||||
* @param string $accessToken The access token (default = "null")
|
* @param string $accessToken The access token (default = "null")
|
||||||
* @param string $stage The stage of the session (default ="request")
|
* @param string $refreshToken The refresh token (default = "null")
|
||||||
|
* @param string $stage The stage of the session (default ="request")
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function updateSession(
|
public function updateSession(
|
||||||
|
Loading…
Reference in New Issue
Block a user