diff --git a/src/League/OAuth2/Server/Storage/PDO/Session.php b/src/League/OAuth2/Server/Storage/PDO/Session.php index 87716522..d03446d6 100644 --- a/src/League/OAuth2/Server/Storage/PDO/Session.php +++ b/src/League/OAuth2/Server/Storage/PDO/Session.php @@ -161,6 +161,16 @@ class Session implements SessionInterface 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) { $db = \ezcDbInstance::get();