class AccessTokenRepository extends EntityRepository implements AccessTokenRepositoryInterface (View source)

Methods

AccessTokenEntityInterface
getNewToken(ClientEntityInterface $clientEntity, array $scopes, mixed $userIdentifier = null)

Create a new access token

persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity)

Persists a new access token to permanent storage.

revokeAccessToken(string $tokenId)

Revoke an access token.

bool
isAccessTokenRevoked(string $tokenId)

Check if the access token has been revoked.

Details

AccessTokenEntityInterface getNewToken(ClientEntityInterface $clientEntity, array $scopes, mixed $userIdentifier = null)

Create a new access token

Parameters

ClientEntityInterface $clientEntity
array $scopes
mixed $userIdentifier

Return Value

AccessTokenEntityInterface

persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity)

Persists a new access token to permanent storage.

Parameters

AccessTokenEntityInterface $accessTokenEntity

Exceptions

Exception

revokeAccessToken(string $tokenId)

Revoke an access token.

Parameters

string $tokenId

Exceptions

Exception

bool isAccessTokenRevoked(string $tokenId)

Check if the access token has been revoked.

Parameters

string $tokenId

Return Value

bool

Return true if this token has been revoked