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
Detailsstring $_algo = ''The actual algorithm to use. Defaults to MD5
DetailsZend_Auth_Adapter_Http_Resolver_Interface $_basicResolver = ''Object that looks up user credentials for the Basic scheme
DetailsZend_Auth_Adapter_Http_Resolver_Interface $_digestResolver = ''Object that looks up user credentials for the Digest scheme
Detailsstring $_domains = ''Space-delimited list of protected domains for Digest Auth
Detailsboolean $_ieNoOpaque = ''Flag indicating the client is IE and didn't bother to return the opaque string
Detailsboolean $_imaProxy = ''Whether or not to do Proxy Authentication instead of origin server authentication (send 407's instead of 401's). Off by default.
Detailsinteger $_nonceTimeout = ''Nonce timeout period
Detailsstring $_realm = ''The protection realm to use
DetailsZend_Controller_Request_Http $_request = ''Reference to the HTTP Request object
DetailsZend_Controller_Response_Http $_response = ''Reference to the HTTP Response object
Detailsarray $_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.
Detailsarray $_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.
Detailsarray $_supportedSchemes = 'array'List of authentication schemes supported by this class
Detailsboolean $_useOpaque = ''Whether to send the opaque value in the header. True by default
Details__construct(
array $config
)
:
voidConstructor
Details_basicAuth(
string $header
)
:
Zend_Auth_ResultBasic Authentication
Details_basicHeader(
)
:
stringBasic Header
Generates a Proxy- or WWW-Authenticate header value in the Basic authentication scheme.
Details_calcNonce(
)
:
stringCalculate Nonce
Details_calcOpaque(
)
:
stringCalculate 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.
Details_challengeClient(
)
:
Zend_Auth_ResultChallenge Client
Sets a 401 or 407 Unauthorized response code, and creates the appropriate Authenticate header(s) to prompt for credentials.
Details_digestAuth(
string $header
)
:
Zend_Auth_ResultDigest Authentication
Details_digestHeader(
)
:
stringDigest Header
Generates a Proxy- or WWW-Authenticate header value in the Digest authentication scheme.
Details_parseDigestAuth(
string $header
)
:
array|falseParse Digest Authorization header
Detailsauthenticate(
)
:
Zend_Auth_ResultAuthenticate
DetailsgetBasicResolver(
)
:
Zend_Auth_Adapter_Http_Resolver_InterfaceGetter for the _basicResolver property
DetailsgetDigestResolver(
)
:
Zend_Auth_Adapter_Http_Resolver_InterfaceGetter for the _digestResolver property
DetailsgetRequest(
)
:
Zend_Controller_Request_HttpGetter for the Request object
DetailsgetResponse(
)
:
Zend_Controller_Response_HttpGetter for the Response object
DetailssetBasicResolver(
Zend_Auth_Adapter_Http_Resolver_Interface $resolver
)
:
Zend_Auth_Adapter_HttpSetter for the _basicResolver property
DetailssetDigestResolver(
Zend_Auth_Adapter_Http_Resolver_Interface $resolver
)
:
Zend_Auth_Adapter_HttpSetter for the _digestResolver property
DetailssetRequest(
Zend_Controller_Request_Http $request
)
:
Zend_Auth_Adapter_HttpSetter for the Request object
DetailssetResponse(
Zend_Controller_Response_Http $response
)
:
Zend_Auth_Adapter_HttpSetter for the Response object
Details