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.
OpenID consumer implementation
array $_cache = 'array'Internal cache to prevent unnecessary access to storage
DetailsZend_OpenId_Consumer_Storage $_dumbMode = 'false'Enables or disables consumer to use association with server based on Diffie-Hellman key agreement
Detailsstring $_error = ''Last error message for logi, check or verify failure
DetailsZend_Http_Client $_httpClient = 'null'HTTP client to make HTTP requests
DetailsZend_Session_Namespace $_session = 'null'HTTP session to store climed_id between requests
DetailsZend_OpenId_Consumer_Storage $_storage = 'null'Reference to an implementation of storage object
Details__construct(
Zend_OpenId_Consumer_Storage $storage
=
null, bool $dumbMode
=
false
)
:
Constructs a Zend_OpenId_Consumer object with given $storage.
Enables or disables future association with server based on Diffie-Hellman key agreement.
Details_addAssociation(
string $url, string $handle, string $macFunc, string $secret, integer $expires
)
:
voidStore assiciation in internal chace and external storage
Details_associate(
string $url, float $version, string $priv_key
=
null
)
:
boolCreate (or reuse existing) association between OpenID consumer and OpenID server based on Diffie-Hellman key agreement. Returns true on success and false on failure.
Details_checkId(
bool $immediate, string $id, string $returnTo
=
null, string $root
=
null, mixed $extensions
=
null, Zend_Controller_Response_Abstract $response
=
null
)
:
boolPerforms check of OpenID identity.
This is the first step of OpenID authentication process. On success the function does not return (it does HTTP redirection to server and exits). On failure it returns false.
Details_discovery(
string $id, string $server, float $version
)
:
boolPerforms discovery of identity and finds OpenID URL, OpenID server URL and OpenID protocol version. Returns true on succees and false on failure.
Details_getAssociation(
string $url, string $handle, string $macFunc, string $secret, integer $expires
)
:
voidRetrive assiciation information for given $url from internal cahce or external storage
Details_httpRequest(
string $url, string $method
=
GET, array $params
=
array, int $status
=
null
)
:
mixedPerforms HTTP request to given $url using given HTTP $method.
Send additinal query specified by variable/value array, On success returns HTTP response without headers, false on failure.
Details_setError(
string $message
)
:
Saves error message
Detailscheck(
string $id, string $returnTo
=
null, string $root
=
null, mixed $extensions
=
null, Zend_Controller_Response_Abstract $response
=
null
)
:
boolPerforms immediate check (without user interaction) of OpenID identity.
This is the first step of OpenID authentication process. On success the function does not return (it does HTTP redirection to server and exits). On failure it returns false.
DetailsgetError(
)
:
stringReturns error message that explains failure of login, check or verify
DetailsgetHttpClient(
)
:
Zend_Http_ClientReturns HTTP client object that will be used to make HTTP requests
DetailsgetSession(
)
:
Zend_Session_NamespaceReturns session object that is used to store climed_id
Detailslogin(
string $id, string $returnTo
=
null, string $root
=
null, mixed $extensions
=
null, Zend_Controller_Response_Abstract $response
=
null
)
:
boolPerforms check (with possible user interaction) of OpenID identity.
This is the first step of OpenID authentication process. On success the function does not return (it does HTTP redirection to server and exits). On failure it returns false.
DetailssetHttpClient(
Zend_Http_Client $client
)
:
Sets HTTP client object to make HTTP requests
DetailssetSession(
Zend_Session_Namespace $session
)
:
Sets session object to store climed_id
Detailsverify(
array $params, string $identity, mixed $extensions
=
null
)
:
boolVerifies authentication response from OpenID server.
This is the second step of OpenID authentication process. The function returns true on successful authentication and false on failure.
Details