Added associateAuthCodeScope to PDO

This commit is contained in:
Alex Bilbie 2013-05-10 16:57:12 -07:00
parent 410ad09b5c
commit 591139f44d

View File

@ -161,6 +161,16 @@ class Session implements SessionInterface
return ($result === false) ? false : (array) $result; return ($result === false) ? false : (array) $result;
} }
public function associateAuthCodeScope($sessionId, $scopeId)
{
$db = \ezcDbInstance::get();
$stmt = $db->prepare('INSERT INTO `oauth_session_authcode_scopes` (`session_id`, `scope_id`) VALUES (:sessionId, :scopeId)');
$stmt->bindValue(':sessionId', $sessionId);
$stmt->bindValue(':scopeId', $scopeId);
$stmt->execute();
}
public function associateScope($accessTokenId, $scopeId) public function associateScope($accessTokenId, $scopeId)
{ {
$db = \ezcDbInstance::get(); $db = \ezcDbInstance::get();