class AuthCodeRepository implements AuthCodeRepositoryInterface

Traits

Methods

void
saveToken(Model $token)

Save a credential or fail when a model observer cancels persistence.

AuthCodeEntityInterface
getNewAuthCode()

Create a new authorization code entity.

void
persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity)

Persist a new authorization code.

void
revokeAuthCode(string $codeId)

Revoke an authorization code.

bool
isAuthCodeRevoked(string $codeId)

Determine whether an authorization code has been revoked.

Details

in PersistsTokens at line 15
protected void saveToken(Model $token)

Save a credential or fail when a model observer cancels persistence.

Parameters

Model $token

Return Value

void

at line 21
AuthCodeEntityInterface getNewAuthCode()

Create a new authorization code entity.

{@inheritdoc}

Return Value

AuthCodeEntityInterface

at line 31
void persistNewAuthCode(AuthCodeEntityInterface $authCodeEntity)

Persist a new authorization code.

{@inheritdoc}

Parameters

AuthCodeEntityInterface $authCodeEntity

Return Value

void

at line 55
void revokeAuthCode(string $codeId)

Revoke an authorization code.

{@inheritdoc}

Parameters

string $codeId

Return Value

void

at line 65
bool isAuthCodeRevoked(string $codeId)

Determine whether an authorization code has been revoked.

{@inheritdoc}

Parameters

string $codeId

Return Value

bool