Class

ezpRestNoAuthStyle

class ezpRestNoAuthStyle extends ezpRestAuthenticationStyle implements ezpRestAuthenticationStyleInterface

This auth style is used when no authentication is required for current REST request A default user will be returned.

UserID to use has to be set in rest.ini/[Authentication].DefaultUserID (fallback is anonymous user)

Methods

__construct()

from ezpRestAuthenticationStyle
setUser(eZUser $user)

from ezpRestAuthenticationStyle
getUser()

from ezpRestAuthenticationStyle
void setup(ezcMvcRequest $request)

eZUser|ezcMvcInternalRedirect authenticate(ezcAuthentication $auth, ezcMvcRequest $request)

Details

public __construct()

public setUser(eZUser $user)

Parameters

eZUser $user

See also

ezpRestAuthenticationStyleInterface::setUser()

public getUser()

See also

ezpRestAuthenticationStyleInterface::getUser()

at line 20
public void setup(ezcMvcRequest $request)

Parameters

ezcMvcRequest $request

Return Value

void

See also

ezpRestAuthenticationStyleInterface::setup()

at line 40
public eZUser|ezcMvcInternalRedirect authenticate(ezcAuthentication $auth, ezcMvcRequest $request)

Parameters

ezcAuthentication $auth
ezcMvcRequest $request

Return Value

eZUser|ezcMvcInternalRedirect

See also

ezpRestAuthenticationStyleInterface::authenticate()