BearerRequestAuthenticator
in package
implements
WebRequestAuthenticator
Class JsonWebTokenAuthenticator
Interfaces, Classes and Traits
- WebRequestAuthenticator
- Interface WebRequestAuthenticator
Table of Contents
- $jsonWebTokenAuthenticator : JsonWebTokenAuthenticator
- __construct() : mixed
- BasicRequestAuthenticator constructor.
- authenticateWebRequest() : UserId
- Authenticates the provided server request and returns the user ID.
Properties
$jsonWebTokenAuthenticator
private
JsonWebTokenAuthenticator
$jsonWebTokenAuthenticator
Methods
__construct()
BasicRequestAuthenticator constructor.
public
__construct(JsonWebTokenAuthenticator $jsonWebTokenAuthenticator) : mixed
Parameters
- $jsonWebTokenAuthenticator : JsonWebTokenAuthenticator
Return values
mixed —authenticateWebRequest()
Authenticates the provided server request and returns the user ID.
public
authenticateWebRequest(ServerRequestInterface $request) : UserId
Parameters
- $request : ServerRequestInterface