OpenId/Consumer.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_OpenId  
Subpackage
Zend_OpenId_Consumer  
Version
$Id: Consumer.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_OpenId_Consumer

Package: Zend_OpenId\Zend_OpenId_Consumer
OpenID consumer implementation
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Methods

methodpublic__construct(\Zend_OpenId_Consumer_Storage $storage = null, bool $dumbMode = false) : void

Constructs a Zend_OpenId_Consumer object with given $storage.

Enables or disables future association with server based on Diffie-Hellman key agreement.
Parameters
NameTypeDescription
$storage\Zend_OpenId_Consumer_Storage

implementation of custom storage object

$dumbModebool

Enables or disables consumer to use association with server based on Diffie-Hellman key agreement

methodpubliccheck(string $id, string $returnTo = null, string $root = null, mixed $extensions = null, \Zend_Controller_Response_Abstract $response = null) : bool

Performs 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.
Parameters
NameTypeDescription
$idstring

OpenID identity

$returnTostring

HTTP URL to redirect response from server to

$rootstring

HTTP URL to identify consumer on server

$extensionsmixed

extension object or array of extensions objects

$response\Zend_Controller_Response_Abstract

an optional response object to perform HTTP or HTML form redirection

Returns
TypeDescription
bool
methodpublicgetError() : string

Returns error message that explains failure of login, check or verify

Returns
TypeDescription
string
methodpublicgetHttpClient() : \Zend_Http_Client

Returns HTTP client object that will be used to make HTTP requests

Returns
TypeDescription
\Zend_Http_Client
methodpublicgetSession() : \Zend_Session_Namespace

Returns session object that is used to store climed_id

Returns
TypeDescription
\Zend_Session_Namespace
methodpubliclogin(string $id, string $returnTo = null, string $root = null, mixed $extensions = null, \Zend_Controller_Response_Abstract $response = null) : bool

Performs 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.
Parameters
NameTypeDescription
$idstring

OpenID identity

$returnTostring

URL to redirect response from server to

$rootstring

HTTP URL to identify consumer on server

$extensionsmixed

extension object or array of extensions objects

$response\Zend_Controller_Response_Abstract

an optional response object to perform HTTP or HTML form redirection

Returns
TypeDescription
bool
methodpublicsetHttpClient(\Zend_Http_Client $client) : void

Sets HTTP client object to make HTTP requests

Parameters
NameTypeDescription
$client\Zend_Http_Client

HTTP client object to be used

methodpublicsetSession(\Zend_Session_Namespace $session) : void

Sets session object to store climed_id

Parameters
NameTypeDescription
$session\Zend_Session_Namespace

HTTP client object to be used

methodpublicverify(array $params,  $identity = "", mixed $extensions = null) : bool

Verifies 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.
Parameters
NameTypeDescription
$paramsarray

HTTP query data from OpenID server

$identity
$extensionsmixed

extension object or array of extensions objects

Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .