mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-25 06:30:13 +05:30
commit
8c6fd6c05a
@ -34,7 +34,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getScopes(AbstractTokenEntity $token)
|
public function getScopes(AccessTokenEntity $token)
|
||||||
{
|
{
|
||||||
$result = Capsule::table('oauth_access_token_scopes')
|
$result = Capsule::table('oauth_access_token_scopes')
|
||||||
->select(['oauth_scopes.id', 'oauth_scopes.description'])
|
->select(['oauth_scopes.id', 'oauth_scopes.description'])
|
||||||
@ -73,7 +73,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope)
|
public function associateScope(AccessTokenEntity $token, ScopeEntity $scope)
|
||||||
{
|
{
|
||||||
Capsule::table('oauth_access_token_scopes')
|
Capsule::table('oauth_access_token_scopes')
|
||||||
->insert([
|
->insert([
|
||||||
@ -85,7 +85,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function delete(AbstractTokenEntity $token)
|
public function delete(AccessTokenEntity $token)
|
||||||
{
|
{
|
||||||
Capsule::table('oauth_access_token_scopes')
|
Capsule::table('oauth_access_token_scopes')
|
||||||
->where('access_token', $token->getId())
|
->where('access_token', $token->getId())
|
||||||
|
Loading…
Reference in New Issue
Block a user