Class

eZ\Publish\Core\REST\Server\Authenticator

abstract class Authenticator

Authenticator base class.

Methods

__construct(Repository $repository)

Creates an new Authenticator to $repository.

bool authenticate(Request $request)

Authenticates the user based on the given request.

Details

at line 24
public __construct(Repository $repository)

Creates an new Authenticator to $repository.

Parameters

Repository $repository

at line 40
abstract public bool authenticate(Request $request)

Authenticates the user based on the given request.

Performs an authentication based on the given $request and sets the authenticated user into the $repository. Returns true on success, false of authentication was not possible or did not succeed.

Parameters

Request $request

Return Value

bool