Auth/Adapter/OpenId.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_Auth  
Subpackage
Zend_Auth_Adapter  
Version
$Id$  

\Zend_Auth_Adapter_OpenId

Package: Zend_Auth\Zend_Auth_Adapter
A Zend_Auth Authentication Adapter allowing the use of OpenID protocol as an authentication mechanism
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivatebool $_check_immediate = false
Enables or disables interaction with user during authentication on OpenID provider.
Default valuefalseDetails
Type
bool
>VPropertyprivatestring $_extensions = null
Extension object or array of extensions objects
Default valuenullDetails
Type
string
>VPropertyprivate\Zend_Http_Client $_httpClient = null
HTTP client to make HTTP requests
Default valuenullDetails
Type
\Zend_Http_Client
>VPropertyprivatestring $_id = null
The identity value being authenticated
Default valuenullDetails
Type
string
>VPropertyprivate\Zend_Controller_Response_Abstract $_response = null
The response object to perform HTTP or HTML form redirection
Default valuenullDetails
Type
\Zend_Controller_Response_Abstract
>VPropertyprivatestring $_returnTo = null
The URL to redirect response from server to
Default valuenullDetails
Type
string
>VPropertyprivatestring $_root = null
The HTTP URL to identify consumer on server
Default valuenullDetails
Type
string
>VPropertyprivate\Zend_OpenId_Consumer_Storage $_storage = null
Reference to an implementation of a storage object
Default valuenullDetails
Type
\Zend_OpenId_Consumer_Storage

Methods

methodpublic__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) : void

Constructor

Parameters
NameTypeDescription
$idstring

the identity value

$storage\Zend_OpenId_Consumer_Storage

an optional implementation of a storage object

$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

methodpublicauthenticate() : \Zend_Auth_Result

Authenticates the given OpenId identity.

Defined by Zend_Auth_Adapter_Interface.
Returns
TypeDescription
\Zend_Auth_Result
Throws
ExceptionDescription
\Zend_Auth_Adapter_ExceptionIf answering the authentication query is impossible
methodpublicsetCheckImmediate(bool $check_immediate) : \Zend_Auth_Adapter_OpenId

Enables or disables interaction with user during authentication on OpenID provider.

Parameters
NameTypeDescription
$check_immediatebool
Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
methodpublicsetExtensions(mixed $extensions) : \Zend_Auth_Adapter_OpenId

Sets OpenID extension(s)

Parameters
NameTypeDescription
$extensionsmixed
Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
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

methodpublicsetIdentity(string $id) : \Zend_Auth_Adapter_OpenId

Sets the value to be used as the identity

Parameters
NameTypeDescription
$idstring

the identity value

Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
methodpublicsetResponse( $response) : \Zend_Auth_Adapter_OpenId

Sets an optional response object to perform HTTP or HTML form redirection

Parameters
NameTypeDescription
$response
Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
methodpublicsetReturnTo(string $returnTo) : \Zend_Auth_Adapter_OpenId

Sets the HTTP URL to redirect response from server to

Parameters
NameTypeDescription
$returnTostring
Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
methodpublicsetRoot(string $root) : \Zend_Auth_Adapter_OpenId

Sets HTTP URL to identify consumer on server

Parameters
NameTypeDescription
$rootstring
Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
methodpublicsetStorage(\Zend_OpenId_Consumer_Storage $storage) : \Zend_Auth_Adapter_OpenId

Sets the storage implementation which will be use by OpenId

Parameters
NameTypeDescription
$storage\Zend_OpenId_Consumer_Storage
Returns
TypeDescription
\Zend_Auth_Adapter_OpenIdProvides a fluent interface
Documentation was generated by phpDocumentor 2.2.0 .