class CwpBasicAuthMiddleware extends BasicAuthMiddleware implements PermissionProvider (View source)

Methods

process(HTTPRequest $request, callable $delegate)

Generate response for the given request

array
getURLPatterns()

Get list of url patterns

$this
setURLPatterns(array $urlPatterns)

No description

array
getWhitelistedIps()

No description

$this
setWhitelistedIps(string|string[] $whitelistedIps)

No description

providePermissions()

Provide a permission code for users to be able to access the site in test mode (UAT sites). This will apply to any route other than those required to change your password.

Details

HTTPResponse process(HTTPRequest $request, callable $delegate)

Generate response for the given request

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse

array getURLPatterns()

Get list of url patterns

Return Value

array

$this setURLPatterns(array $urlPatterns)

Parameters

array $urlPatterns

Return Value

$this

array getWhitelistedIps()

Return Value

array

$this setWhitelistedIps(string|string[] $whitelistedIps)

Parameters

string|string[] $whitelistedIps

An array of IP addresses, a comma delimited string, or an array of IPs or comma delimited IP list strings

Return Value

$this

providePermissions()

Provide a permission code for users to be able to access the site in test mode (UAT sites). This will apply to any route other than those required to change your password.