Class

ezpRestBasicAuthStyle

class ezpRestBasicAuthStyle extends ezpRestAuthenticationStyle implements ezpRestAuthenticationStyleInterface

File containing the basic auth style

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.

Details

public __construct()

public setUser(eZUser $user)

Parameters

eZUser $user

See also

ezpRestAuthenticationStyleInterface::setUser()

public getUser()

See also

ezpRestAuthenticationStyleInterface::getUser()

at line 13
public void setup(ezcMvcRequest $request)

Setting up the state to allow for later authentcation checks.

Parameters

ezcMvcRequest $request

Return Value

void

at line 33
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