Added hasAccessToken query

This commit is contained in:
Alex Bilbie 2012-07-06 19:20:21 +01:00
parent 54a7a5b893
commit 11995764ba

View File

@ -39,6 +39,20 @@ interface OAuth2ServerDatabase
string $authCode string $authCode
); );
/**
* Has access token
*
* Check if an access token exists for a user (or an application)
*
* @access public
* @return bool|string Return FALSE is a token doesn't exist or return the
* access token as a string
*/
public function hasAccessToken(
string $typeId,
string $clientId
);
public function getAccessToken(int $sessionId); public function getAccessToken(int $sessionId);
public function removeAuthCode(int $sessionId); public function removeAuthCode(int $sessionId);