Class

ezpRestOauthAuthenticationStyle

class ezpRestOauthAuthenticationStyle extends ezpRestAuthenticationStyle implements ezpRestAuthenticationStyleInterface

File containing ezpRestOauthAuthenticationStyle

Methods

__construct()

from ezpRestAuthenticationStyle
setUser(eZUser $user)

from ezpRestAuthenticationStyle
getUser()

from ezpRestAuthenticationStyle
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.

processLoginRequired(ezcMvcResult $res, $reasons, $errorMap = null)

Method extracted from MvcAuthenticationTiein

Details

public __construct()

public setUser(eZUser $user)

Parameters

eZUser $user

See also

ezpRestAuthenticationStyleInterface::setUser()

public getUser()

See also

ezpRestAuthenticationStyleInterface::getUser()

at line 14
public void setup(ezcMvcRequest $request)

Setting up the state to allow for later authentcation checks.

Parameters

ezcMvcRequest $request

Return Value

void

at line 30
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 79
public processLoginRequired(ezcMvcResult $res, $reasons, $errorMap = null)

Method extracted from MvcAuthenticationTiein

Checks the status from the authentication run and adds the reasons as variable to the $result.

This method uses the information that is set by the runAuthRequiredFilter() filter to generate an user-readable text of the found $reasons and sets these as the variable ezcAuth_reasons in the $result. You can supply your own mapping from status codes to messages, but a default is provided. Please refer to the Authentication tutorial for information about status codes.

Parameters

ezcMvcResult $res
$reasons
$errorMap