class AuthenticationMiddleware implements HTTPMiddleware (View source)

Traits

Provides extensions to this object to integrate it with standard config API methods.

Properties

protected AuthenticationHandler $authenticationHandler

Methods

public static 
config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

public
mixed
uninherited(string $name)

Gets the uninherited value for the given config option

public
$this
setAuthenticationHandler(AuthenticationHandler $authenticationHandler)

No description

public
process(HTTPRequest $request, callable $delegate)

Identify the current user from the request

Details

static Config_ForClass config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

Return Value

Config_ForClass

mixed uninherited(string $name)

Gets the uninherited value for the given config option

Parameters

string $name

Return Value

mixed

AuthenticationHandler getAuthenticationHandler()

No description

Return Value

AuthenticationHandler

$this setAuthenticationHandler(AuthenticationHandler $authenticationHandler)

No description

Parameters

AuthenticationHandler $authenticationHandler

Return Value

$this

HTTPResponse process(HTTPRequest $request, callable $delegate)

Identify the current user from the request

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse