AccessTokenRepository
class AccessTokenRepository implements AccessTokenRepositoryInterface
Traits
Methods
void
from
PersistsTokens
AccessTokenEntityInterface
getNewToken(ClientEntityInterface $clientEntity, array $scopes, string|null $userIdentifier = null)
Create a new access token entity.
void
persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity)
Persist a new access token.
void
revokeAccessToken(string $tokenId)
Revoke an access token.
bool
isAccessTokenRevoked(string $tokenId)
Determine whether an access token may authenticate the request.
Details
in
PersistsTokens at line 15
protected void
saveToken(Model $token)
Save a credential or fail when a model observer cancels persistence.
at line 27
__construct(Dispatcher $events)
Create a new repository instance.
at line 37
AccessTokenEntityInterface
getNewToken(ClientEntityInterface $clientEntity, array $scopes, string|null $userIdentifier = null)
Create a new access token entity.
{@inheritdoc}
at line 63
void
persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity)
Persist a new access token.
{@inheritdoc}
at line 115
void
revokeAccessToken(string $tokenId)
Revoke an access token.
{@inheritdoc}
at line 135
bool
isAccessTokenRevoked(string $tokenId)
Determine whether an access token may authenticate the request.
{@inheritdoc}