class ResourceServer extends ResourceServer

Methods

__construct(AccessTokenRepositoryInterface $accessTokenRepository, CryptKeyInterface|string $publicKey, AuthorizationValidatorInterface|null $authorizationValidator, ServerFactory $servers)

Build a verifier that follows the current server settings when retained by a caller.

ServerRequestInterface
validateAuthenticatedRequest(ServerRequestInterface $request)

Validate the token against the current settings without caching the result.

ServerRequestInterface
validateRequest(ServerRequestInterface $request)

Validate on the selected server without resolving the settings again.

Details

at line 19
__construct(AccessTokenRepositoryInterface $accessTokenRepository, CryptKeyInterface|string $publicKey, AuthorizationValidatorInterface|null $authorizationValidator, ServerFactory $servers)

Build a verifier that follows the current server settings when retained by a caller.

Parameters

AccessTokenRepositoryInterface $accessTokenRepository
CryptKeyInterface|string $publicKey
AuthorizationValidatorInterface|null $authorizationValidator
ServerFactory $servers

at line 31
ServerRequestInterface validateAuthenticatedRequest(ServerRequestInterface $request)

Validate the token against the current settings without caching the result.

Parameters

ServerRequestInterface $request

Return Value

ServerRequestInterface

at line 45
ServerRequestInterface validateRequest(ServerRequestInterface $request)

internal  used by the factory after selecting the current server
 

Validate on the selected server without resolving the settings again.

Parameters

ServerRequestInterface $request

Return Value

ServerRequestInterface