PHP Class eZ\Publish\Core\REST\Server\Authenticator

Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\Repository $repository ) Creates an new Authenticator to $repository.
authenticate ( Qafoo\RMF\Request $request ) : boolean Authenticates the user based on the given request.

Method Details

__construct() public method

Creates an new Authenticator to $repository.
public __construct ( eZ\Publish\API\Repository\Repository $repository )
$repository eZ\Publish\API\Repository\Repository

authenticate() abstract public method

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.
abstract public authenticate ( Qafoo\RMF\Request $request ) : boolean
$request Qafoo\RMF\Request
return boolean