Added missing functions

This commit is contained in:
Alex Bilbie 2013-06-02 14:58:59 +01:00
parent e442253e26
commit 0999bf4de3

View File

@ -130,4 +130,27 @@ class Session implements SessionInterface {
->where('access_token', $accessToken) ->where('access_token', $accessToken)
->get(); ->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();
}
} }