class HttpBasic extends AbstractEntryPoint (View source)

An authentication entry point, that sends an HTTP header to start HTTP Basic authentication.

Properties

protected array $options

The configurations options

from  AbstractEntryPoint

Methods

void
setOptions(array $options)

Sets the options array

array
getOptions()

Returns the options array

ResponseInterface
startAuthentication(ServerRequestInterface $request, ResponseInterface $response)

Starts the authentication: Send HTTP header

Details

void setOptions(array $options)

Sets the options array

Parameters

array $options

An array of configuration options

Return Value

void

array getOptions()

Returns the options array

Return Value

array

An array of configuration options

ResponseInterface startAuthentication(ServerRequestInterface $request, ResponseInterface $response)

Starts the authentication: Send HTTP header

Parameters

ServerRequestInterface $request

The current request

ResponseInterface $response

The current response

Return Value

ResponseInterface