VuFind API Documentation

AbstractTokenRepository
in package

OAuth2 token repository base class.

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

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
isRevoked()  : bool
Check if a token is revoked
persistNew()  : void
Persist a token in the database
revoke()  : void
Revoke a token

Properties

Methods

__construct()

Constructor

public __construct(string $tokenType, string $entityClass, array<string|int, mixed> $oauth2Config, AccessTokenServiceInterface $accessTokenService, UserServiceInterface $userService) : mixed
Parameters
$tokenType : string

Token type

$entityClass : string

Entity class name

$oauth2Config : array<string|int, mixed>

OAuth2 configuration

$accessTokenService : AccessTokenServiceInterface

Access token service

$userService : UserServiceInterface

User service

Return values
mixed

isRevoked()

Check if a token is revoked

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

Token ID

Return values
bool

revoke()

Revoke a token

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

Token ID

Return values
void

Search results