mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Added missing functions
This commit is contained in:
parent
e442253e26
commit
0999bf4de3
@ -130,4 +130,27 @@ class Session implements SessionInterface {
|
||||
->where('access_token', $accessToken)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function associateAuthCodeScope($authCodeId, $scopeId)
|
||||
{
|
||||
DB::table('oauth_session_authcode_scopes')->insert(array(
|
||||
'oauth_session_authcode_id' => $authCodeId,
|
||||
'scope_id' => $scopeId
|
||||
));
|
||||
}
|
||||
|
||||
public function getAuthCodeScopes($oauthSessionAuthCodeId)
|
||||
{
|
||||
return DB::table('oauth_session_authcode_scopes')
|
||||
->where('oauth_session_authcode_id', '=', $oauthSessionAuthCodeId)
|
||||
->get();
|
||||
}
|
||||
|
||||
public function removeRefreshToken($refreshToken)
|
||||
{
|
||||
DB::table('oauth_session_refresh_tokens')
|
||||
->where('refresh_token', '=', $refreshToken)
|
||||
->delete();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user