diff --git a/src/OAuth2/Storage/SessionInterface.php b/src/OAuth2/Storage/SessionInterface.php index f886339a..7e9fd368 100644 --- a/src/OAuth2/Storage/SessionInterface.php +++ b/src/OAuth2/Storage/SessionInterface.php @@ -84,28 +84,6 @@ interface SessionInterface $typeId ); - /** - * Return the session ID for a given session owner and client combination - * - * Example SQL query: - * - * - * SELECT id FROM oauth_sessions WHERE client_id = $clientId - * AND owner_type = $type AND owner_id = $typeId - * - * - * @param string $type The session owner's type - * @param string $typeId The session owner's ID - * @param string $clientId The client ID - * @return string|null Return the session ID as an integer if - * found otherwise returns false - */ - public function sessionExists( - $type, - $typeId, - $clientId - ); - /** * Validate that an authorisation code is valid * @@ -147,39 +125,6 @@ interface SessionInterface $authCode ); - /** - * Removes an authorisation code associated with a session - * - * Example SQL query: - * - * - * UPDATE oauth_sessions SET auth_code = NULL WHERE id = $sessionId - * - * - * @param int $sessionId The OAuth session ID - * @return void - */ - public function removeAuthCode($sessionId); - - /** - * Sets a sessions access token - * - * Example SQL query: - * - * - * UPDATE oauth_sessions SET access_token = $accessToken WHERE id = - * $sessionId - * - * - * @param int $sessionId The OAuth session ID - * @param string $accessToken The access token - * @return void - */ - public function setAccessToken( - $sessionId, - $accessToken - ); - public function validateAccessToken($accessToken); /**