Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
HTTP Authentication Adapter
Implements a pretty good chunk of RFC 2617.
array $_acceptSchemes = ''
List of schemes this class will accept from the client
string $_algo = ''
The actual algorithm to use. Defaults to MD5
Zend_Auth_Adapter_Http_Resolver_Interface $_basicResolver = ''
Object that looks up user credentials for the Basic scheme
Zend_Auth_Adapter_Http_Resolver_Interface $_digestResolver = ''
Object that looks up user credentials for the Digest scheme
string $_domains = ''
Space-delimited list of protected domains for Digest Auth
boolean $_ieNoOpaque = ''
Flag indicating the client is IE and didn't bother to return the opaque string
boolean $_imaProxy = ''
Whether or not to do Proxy Authentication instead of origin server authentication (send 407's instead of 401's). Off by default.
integer $_nonceTimeout = ''
Nonce timeout period
string $_realm = ''
The protection realm to use
Zend_Controller_Request_Http $_request = ''
Reference to the HTTP Request object
Zend_Controller_Response_Http $_response = ''
Reference to the HTTP Response object
array $_supportedAlgos = 'array'
List of the supported digest algorithms. I want to support both MD5 and MD5-sess, but MD5-sess won't make it into the first version.
array $_supportedQops = 'array'
List of supported qop options. My intetion is to support both 'auth' and 'auth-int', but 'auth-int' won't make it into the first version.
array $_supportedSchemes = 'array'
List of authentication schemes supported by this class
boolean $_useOpaque = ''
Whether to send the opaque value in the header. True by default
__construct(
array $config
)
:
void
Constructor
_basicAuth(
string $header
)
:
Zend_Auth_Result
Basic Authentication
_basicHeader(
)
:
string
Basic Header
Generates a Proxy- or WWW-Authenticate header value in the Basic authentication scheme.
_calcNonce(
)
:
string
Calculate Nonce
_calcOpaque(
)
:
string
Calculate Opaque
The opaque string can be anything; the client must return it exactly as it was sent. It may be useful to store data in this string in some applications. Ideally, a new value for this would be generated each time a WWW-Authenticate header is sent (in order to reduce predictability), but we would have to be able to create the same exact value across at least two separate requests from the same client.
_challengeClient(
)
:
Zend_Auth_Result
Challenge Client
Sets a 401 or 407 Unauthorized response code, and creates the appropriate Authenticate header(s) to prompt for credentials.
_digestAuth(
string $header
)
:
Zend_Auth_Result
Digest Authentication
_digestHeader(
)
:
string
Digest Header
Generates a Proxy- or WWW-Authenticate header value in the Digest authentication scheme.
_parseDigestAuth(
string $header
)
:
array|false
Parse Digest Authorization header
authenticate(
)
:
Zend_Auth_Result
Authenticate
getBasicResolver(
)
:
Zend_Auth_Adapter_Http_Resolver_Interface
Getter for the _basicResolver property
getDigestResolver(
)
:
Zend_Auth_Adapter_Http_Resolver_Interface
Getter for the _digestResolver property
getRequest(
)
:
Zend_Controller_Request_Http
Getter for the Request object
getResponse(
)
:
Zend_Controller_Response_Http
Getter for the Response object
setBasicResolver(
Zend_Auth_Adapter_Http_Resolver_Interface $resolver
)
:
Zend_Auth_Adapter_Http
Setter for the _basicResolver property
setDigestResolver(
Zend_Auth_Adapter_Http_Resolver_Interface $resolver
)
:
Zend_Auth_Adapter_Http
Setter for the _digestResolver property
setRequest(
Zend_Controller_Request_Http $request
)
:
Zend_Auth_Adapter_Http
Setter for the Request object
setResponse(
Zend_Controller_Response_Http $response
)
:
Zend_Auth_Adapter_Http
Setter for the Response object