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 provider (server) implementation
string $_loginUrl = ''URL to peform interactive user login
Detailsstring $_opEndpoint = ''The OP Endpoint URL
Detailsinteger $_sessionTtl = ''Time to live of association session in secconds
DetailsZend_OpenId_Provider_Storage $_storage = ''Reference to an implementation of storage object
Detailsstring $_trustUrl = ''URL to peform interactive validation of consumer by user
DetailsZend_OpenId_Provider_User $_user = ''Reference to an implementation of user object
Details__construct(
string $loginUrl
=
null, string $trustUrl
=
null, Zend_OpenId_Provider_User $user
=
null, Zend_OpenId_Provider_Storage $storage
=
null, integer $sessionTtl
=
3600
)
:
Constructs a Zend_OpenId_Provider object with given parameters.
Details_associate(
float $version, array $params
)
:
arrayProcesses association request from OpenID consumerm generates secret shared key and send it back using Diffie-Hellman encruption.
Returns array of variables to push back to consumer.
Details_checkAuthentication(
float $version, array $params
)
:
arrayPerforms authentication validation for dumb consumers Returns array of variables to push back to consumer.
It MUST contain 'is_valid' variable with value 'true' or 'false'.
Details_checkId(
float $version, array $params, bool $immediate, mixed $extensions
=
null, Zend_Controller_Response_Abstract $response
=
null
)
:
arrayPerforms authentication (or authentication check).
Details_genSecret(
string $func
)
:
mixedGenerates a secret key for given hash function, returns RAW key or false if function is not supported
Details_respond(
float $version, array $ret, array $params, mixed $extensions
=
null
)
:
arrayPerepares information to send back to consumer's authentication request and signs it using shared secret.
DetailsallowSite(
string $root, mixed $extensions
=
null
)
:
boolAllows consumer with given root URL to authenticate current logged in user. Returns true on success and false on error.
DetailsdelSite(
string $root
)
:
boolDelete consumer with given root URL from known sites of current logged in user. Next time this consumer will try to authenticate the user, Provider will ask user's confirmation.
Returns true on success and false on error.
DetailsdenySite(
string $root
)
:
boolProhibit consumer with given root URL to authenticate current logged in user. Returns true on success and false on error.
DetailsgetLoggedInUser(
)
:
mixedReturns identity URL of current logged in user or false
DetailsgetSiteRoot(
array $params
)
:
mixedRetrieve consumer's root URL from request query.
Returns URL or false in case of failure
DetailsgetTrustedSites(
)
:
mixedReturns list of known consumers for current logged in user or false if he is not logged in.
Detailshandle(
array $params
=
null, mixed $extensions
=
null, Zend_Controller_Response_Abstract $response
=
null
)
:
mixedHandles HTTP request from consumer
DetailshasUser(
string $id
)
:
boolReturns true if user with given $id exists and false otherwise
Detailslogin(
string $id, string $password
)
:
boolPerforms login of user with given $id and $password Returns true in case of success and false otherwise
Detailslogout(
)
:
voidPerforms logout. Clears information about logged in user.
Detailsregister(
string $id, string $password
)
:
boolRegisters a new user with given $id and $password Returns true in case of success and false if user with given $id already exists
DetailsrespondToConsumer(
array $params, mixed $extensions
=
null, Zend_Controller_Response_Abstract $response
=
null
)
:
boolPerepares information to send back to consumer's authentication request, signs it using shared secret and send back through HTTP redirection
DetailssetOpEndpoint(
string $url
)
:
nullSets the OP Endpoint URL
Details