WebRequestAuthenticationService
in
Interface WebRequestAuthenticationService
Table of Contents
- addAuthenticator() : $this
- Adds a web request authenticator to the service, which will be used to authenticate a web request.
- authenticateWebRequest() : bool
- Authenticates the provided server request.
Methods
addAuthenticator()
Adds a web request authenticator to the service, which will be used to authenticate a web request.
public
addAuthenticator(WebRequestAuthenticator $authenticator) : $this
Parameters
- $authenticator : WebRequestAuthenticator
Return values
$this —authenticateWebRequest()
Authenticates the provided server request.
public
authenticateWebRequest(ServerRequestInterface $request) : bool
Parameters
- $request : ServerRequestInterface
Return values
bool —True, if authentication succeeded, otherwise false.