Fully Qualified Name: | Laminas\Authentication\Adapter\Http |
Implements: | AdapterInterface |
HTTP Authentication Adapter
Implements a pretty good chunk of RFC 2617.
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Http |
authenticate() | Authenticate | Http |
challengeClient() | Challenge Client | Http |
getBasicResolver() | Getter for the basicResolver property | Http |
getDigestResolver() | Getter for the digestResolver property | Http |
getRequest() | Getter for the Request object | Http |
getResponse() | Getter for the Response object | Http |
setBasicResolver() | Setter for the basicResolver property | Http |
setDigestResolver() | Setter for the digestResolver property | Http |
setRequest() | Setter for the Request object | Http |
setResponse() | Setter for the Response object | Http |
Constructor
Parameter Name | Type | Description |
---|---|---|
$config | array | Configuration |
Returns:
Authenticate
Returns: \Authentication\Result
Challenge Client
Sets a 401 or 407 Unauthorized response code, and creates the appropriate Authenticate header(s) to prompt for credentials.
Returns: \Authentication\Result Always returns a non-identity Auth result
Getter for the basicResolver property
Returns: \Http\ResolverInterface
Getter for the digestResolver property
Returns: \Http\ResolverInterface
Getter for the Request object
Returns: \HTTPRequest
Getter for the Response object
Returns: \HTTPResponse
Setter for the basicResolver property
Parameter Name | Type | Description |
---|---|---|
$resolver | \Http\ResolverInterface |
Returns: self Provides a fluent interface
Setter for the digestResolver property
Parameter Name | Type | Description |
---|---|---|
$resolver | \Http\ResolverInterface |
Returns: self Provides a fluent interface
Setter for the Request object
Parameter Name | Type | Description |
---|---|---|
$request | \HTTPRequest |
Returns: self Provides a fluent interface
Setter for the Response object
Parameter Name | Type | Description |
---|---|---|
$response | \HTTPResponse |
Returns: self Provides a fluent interface