VuFind API Documentation

AuthCodeRepository extends AbstractTokenRepository
in package
implements AuthCodeRepositoryInterface

OAuth2 authorization code repository implementation.

Tags
category

VuFind

author

Ere Maijala ere.maijala@helsinki.fi

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Site

Interfaces, Classes, Traits and Enums

AuthCodeRepositoryInterface

Table of Contents

$accessTokenService  : AccessTokenServiceInterface
$entityClass  : string
$oauth2Config  : array<string|int, mixed>
$tokenType  : string
$userService  : UserServiceInterface
__construct()  : mixed
Constructor
getNew()  : object
Get a new token
getNewAuthCode()  : AuthCodeEntityInterface
Create a new authentication code
isAuthCodeRevoked()  : bool
Check if the authentication code has been revoked.
isRevoked()  : bool
Check if a token is revoked
persistNew()  : void
Persist a token in the database
persistNewAuthCode()  : void
Persists a new authentication code to permanent storage.
revoke()  : void
Revoke a token
revokeAuthCode()  : void
Revoke an authentication code.

Properties

Methods

getNewAuthCode()

Create a new authentication code

public getNewAuthCode() : AuthCodeEntityInterface
Return values
AuthCodeEntityInterface

isAuthCodeRevoked()

Check if the authentication code has been revoked.

public isAuthCodeRevoked(string $tokenId) : bool
Parameters
$tokenId : string

Token ID

Return values
bool

Return true if this code has been revoked

isRevoked()

Check if a token is revoked

public isRevoked(string $tokenId) : bool
Parameters
$tokenId : string

Token ID

Return values
bool

persistNewAuthCode()

Persists a new authentication code to permanent storage.

public persistNewAuthCode(AuthCodeEntityInterface $entity) : void
Parameters
$entity : AuthCodeEntityInterface

Authentication code entity

Tags
throws
InvalidArgumentException
Return values
void

revoke()

Revoke a token

public revoke(string $tokenId) : void
Parameters
$tokenId : string

Token ID

Return values
void

revokeAuthCode()

Revoke an authentication code.

public revokeAuthCode(string $tokenId) : void
Parameters
$tokenId : string

Token ID

Return values
void

Search results