Auth/Adapter/OpenId.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Auth
- Subpackage
- Zend_Auth_Adapter
- Version
- $Id: OpenId.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Auth_Adapter_OpenId
A Zend_Auth Authentication Adapter allowing the use of OpenID protocol as an authentication mechanism
- Implements
- \Zend_Auth_Adapter_Interface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

bool $_check_immediate = falseEnables or disables interaction with user during authentication on OpenID provider.
falseDetails- Type
- bool

string $_extensions = nullExtension object or array of extensions objects
nullDetails- Type
- string

\Zend_Http_Client $_httpClient = nullHTTP client to make HTTP requests
nullDetails- Type
- \Zend_Http_Client

\Zend_Controller_Response_Abstract $_response = nullThe response object to perform HTTP or HTML form redirection
nullDetails

string $_returnTo = nullThe URL to redirect response from server to
nullDetails- Type
- string

string $_root = nullThe HTTP URL to identify consumer on server
nullDetails- Type
- string
Methods

__construct(string $id = null, \Zend_OpenId_Consumer_Storage $storage = null, string $returnTo = null, string $root = null, mixed $extensions = null, \Zend_Controller_Response_Abstract $response = null) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $id | string | the identity value |
| $storage | \Zend_OpenId_Consumer_Storage | an optional implementation of a storage object |
| $returnTo | string | HTTP URL to redirect response from server to |
| $root | string | HTTP URL to identify consumer on server |
| $extensions | mixed | extension object or array of extensions objects |
| $response | \Zend_Controller_Response_Abstract | an optional response object to perform HTTP or HTML form redirection |

authenticate() : \Zend_Auth_ResultAuthenticates the given OpenId identity.
Defined by Zend_Auth_Adapter_Interface.
| Type | Description |
|---|---|
| \Zend_Auth_Result |
| Exception | Description |
|---|---|
| \Zend_Auth_Adapter_Exception | If answering the authentication query is impossible |

setCheckImmediate(bool $check_immediate) : \Zend_Auth_Adapter_OpenIdEnables or disables interaction with user during authentication on OpenID provider.
| Name | Type | Description |
|---|---|---|
| $check_immediate | bool |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |

setExtensions(mixed $extensions) : \Zend_Auth_Adapter_OpenIdSets OpenID extension(s)
| Name | Type | Description |
|---|---|---|
| $extensions | mixed |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |

setHttpClient(\Zend_Http_Client $client) : voidSets HTTP client object to make HTTP requests
| Name | Type | Description |
|---|---|---|
| $client | \Zend_Http_Client | HTTP client object to be used |

setIdentity(string $id) : \Zend_Auth_Adapter_OpenIdSets the value to be used as the identity
| Name | Type | Description |
|---|---|---|
| $id | string | the identity value |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |

setResponse( $response) : \Zend_Auth_Adapter_OpenIdSets an optional response object to perform HTTP or HTML form redirection
| Name | Type | Description |
|---|---|---|
| $response |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |

setReturnTo(string $returnTo) : \Zend_Auth_Adapter_OpenIdSets the HTTP URL to redirect response from server to
| Name | Type | Description |
|---|---|---|
| $returnTo | string |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |

setRoot(string $root) : \Zend_Auth_Adapter_OpenIdSets HTTP URL to identify consumer on server
| Name | Type | Description |
|---|---|---|
| $root | string |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |

setStorage(\Zend_OpenId_Consumer_Storage $storage) : \Zend_Auth_Adapter_OpenIdSets the storage implementation which will be use by OpenId
| Name | Type | Description |
|---|---|---|
| $storage | \Zend_OpenId_Consumer_Storage |
| Type | Description |
|---|---|
| \Zend_Auth_Adapter_OpenId | Provides a fluent interface |