eZ Publish Community Project (Legacy Stack) 2013.4
Interface

ezpRestAuthenticationStyleInterface

interface ezpRestAuthenticationStyleInterface

File containing the ezpRestAuthenticationStyleInterface interface.

Methods

void setup(ezcMvcRequest $request)

Setting up the state to allow for later authentcation checks.

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

Method to be run inside the runRequestFilters hook inside MvcTools.

eZUser getUser()

Returns valid eZPublish user that has been authenticated by {@link self::authenticate()}

void setUser(eZUser $user)

Registers the user that has been authenticated

Details

at line 19
public void setup(ezcMvcRequest $request)

Setting up the state to allow for later authentcation checks.

Parameters

ezcMvcRequest $request

Return Value

void

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

Method to be run inside the runRequestFilters hook inside MvcTools.

This method should take care of seting up proper redirections to MvcTools

Parameters

ezcAuthentication $auth
ezcMvcRequest $request

Return Value

eZUser|ezcMvcInternalRedirect

at line 34
public eZUser getUser()

Returns valid eZPublish user that has been authenticated by {@link self::authenticate()}

Return Value

eZUser

at line 41
public void setUser(eZUser $user)

Registers the user that has been authenticated

Parameters

eZUser $user

Return Value

void