mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 18:51:53 +05:30
Updated associateScope method
This commit is contained in:
parent
684a8a269e
commit
12ab753f15
@ -86,7 +86,11 @@ class AccessTokenStorage extends Adapter implements AccessTokenInterface
|
|||||||
*/
|
*/
|
||||||
public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope)
|
public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope)
|
||||||
{
|
{
|
||||||
die(var_dump(__METHOD__, func_get_args()));
|
Capsule::table('oauth_access_token_scopes')
|
||||||
|
->insert([
|
||||||
|
'access_token' => $token->getId(),
|
||||||
|
'scope' => $scope->getId()
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user