phpDocumentor

RequestAuthenticationService
in package
implements WebRequestAuthenticationService, WebRequestUserIdentificationService

Class RequestAuthenticationService

Interfaces, Classes and Traits

WebRequestAuthenticationService
Interface WebRequestAuthenticationService
WebRequestUserIdentificationService
Interface WebRequestUserIdentifier

Table of Contents

$authenticators  : array<string|int, WebRequestAuthenticator>
$permissionService  : PermissionService
$url  : Url
__construct()  : mixed
RequestAuthenticationService constructor.
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.
identifyUser()  : int
Identifies the user from the provided server request.
checkAdminPermission()  : bool

Properties

Methods

authenticateWebRequest()

Authenticates the provided server request.

public authenticateWebRequest(ServerRequestInterface $request) : bool
Parameters
$request : ServerRequestInterface
Tags
inheritDoc
Return values
bool

True, if authentication succeeded, otherwise false.

identifyUser()

Identifies the user from the provided server request.

public identifyUser(ServerRequestInterface $request) : int
Parameters
$request : ServerRequestInterface
Tags
inheritDoc
Return values
int

Positive integer, if authentication succeeded, otherwise null.

checkAdminPermission()

private checkAdminPermission(int $userId, ServerRequestInterface $request) : bool
Parameters
$userId : int
$request : ServerRequestInterface
Return values
bool

Search results