mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Added missing db init
This commit is contained in:
parent
1696903b8b
commit
14cff9ea44
@ -113,6 +113,8 @@ class Session implements SessionInterface
|
|||||||
*/
|
*/
|
||||||
public function associateRefreshToken($accessTokenId, $refreshToken)
|
public function associateRefreshToken($accessTokenId, $refreshToken)
|
||||||
{
|
{
|
||||||
|
$db = \ezcDbInstance::get();
|
||||||
|
|
||||||
$stmt = $db->prepare('INSERT INTO oauth_session_refresh_tokens (session_access_token_id, refresh_token) VALUE (:accessTokenId, :refreshToken)');
|
$stmt = $db->prepare('INSERT INTO oauth_session_refresh_tokens (session_access_token_id, refresh_token) VALUE (:accessTokenId, :refreshToken)');
|
||||||
$stmt->bindValue(':accessTokenId', $accessTokenId);
|
$stmt->bindValue(':accessTokenId', $accessTokenId);
|
||||||
$stmt->bindValue(':refreshToken', $refreshToken);
|
$stmt->bindValue(':refreshToken', $refreshToken);
|
||||||
@ -126,7 +128,7 @@ class Session implements SessionInterface
|
|||||||
*/
|
*/
|
||||||
public function removeRefreshToken($sessionId)
|
public function removeRefreshToken($sessionId)
|
||||||
{
|
{
|
||||||
|
throw new \Exception('Not implemented - ' . debug_backtrace()[0]['function']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user