import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: AuthSub.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: AuthSub.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -57,26 +57,26 @@ class Zend_Gdata_AuthSub
|
||||
/**
|
||||
* Creates a URI to request a single-use AuthSub token.
|
||||
*
|
||||
* @param string $next (required) URL identifying the service to be
|
||||
* @param string $next (required) URL identifying the service to be
|
||||
* accessed.
|
||||
* The resulting token will enable access to the specified service only.
|
||||
* Some services may limit scope further, such as read-only access.
|
||||
* @param string $scope (required) URL identifying the service to be
|
||||
* accessed. The resulting token will enable
|
||||
* @param string $scope (required) URL identifying the service to be
|
||||
* accessed. The resulting token will enable
|
||||
* access to the specified service only.
|
||||
* Some services may limit scope further, such
|
||||
* Some services may limit scope further, such
|
||||
* as read-only access.
|
||||
* @param int $secure (optional) Boolean flag indicating whether the
|
||||
* authentication transaction should issue a secure
|
||||
* @param int $secure (optional) Boolean flag indicating whether the
|
||||
* authentication transaction should issue a secure
|
||||
* token (1) or a non-secure token (0). Secure tokens
|
||||
* are available to registered applications only.
|
||||
* @param int $session (optional) Boolean flag indicating whether
|
||||
* the one-time-use token may be exchanged for
|
||||
* @param int $session (optional) Boolean flag indicating whether
|
||||
* the one-time-use token may be exchanged for
|
||||
* a session token (1) or not (0).
|
||||
* @param string $request_uri (optional) URI to which to direct the
|
||||
* @param string $request_uri (optional) URI to which to direct the
|
||||
* authentication request.
|
||||
*/
|
||||
public static function getAuthSubTokenUri($next, $scope, $secure=0, $session=0,
|
||||
public static function getAuthSubTokenUri($next, $scope, $secure=0, $session=0,
|
||||
$request_uri = self::AUTHSUB_REQUEST_URI)
|
||||
{
|
||||
$querystring = '?next=' . urlencode($next)
|
||||
@ -91,21 +91,21 @@ class Zend_Gdata_AuthSub
|
||||
* Upgrades a single use token to a session token
|
||||
*
|
||||
* @param string $token The single use token which is to be upgraded
|
||||
* @param Zend_Http_Client $client (optional) HTTP client to use to
|
||||
* @param Zend_Http_Client $client (optional) HTTP client to use to
|
||||
* make the request
|
||||
* @param string $request_uri (optional) URI to which to direct
|
||||
* @param string $request_uri (optional) URI to which to direct
|
||||
* the session token upgrade
|
||||
* @return string The upgraded token value
|
||||
* @throws Zend_Gdata_App_AuthException
|
||||
* @throws Zend_Gdata_App_HttpException
|
||||
*/
|
||||
public static function getAuthSubSessionToken(
|
||||
$token, $client = null,
|
||||
$token, $client = null,
|
||||
$request_uri = self::AUTHSUB_SESSION_TOKEN_URI)
|
||||
{
|
||||
$client = self::getHttpClient($token, $client);
|
||||
|
||||
if ($client instanceof Zend_Gdata_HttpClient) {
|
||||
|
||||
if ($client instanceof Zend_Gdata_HttpClient) {
|
||||
$filterResult = $client->filterHttpRequest('GET', $request_uri);
|
||||
$url = $filterResult['url'];
|
||||
$headers = $filterResult['headers'];
|
||||
@ -153,7 +153,7 @@ class Zend_Gdata_AuthSub
|
||||
$request_uri = self::AUTHSUB_REVOKE_TOKEN_URI)
|
||||
{
|
||||
$client = self::getHttpClient($token, $client);
|
||||
|
||||
|
||||
if ($client instanceof Zend_Gdata_HttpClient) {
|
||||
$filterResult = $client->filterHttpRequest('GET', $request_uri);
|
||||
$url = $filterResult['url'];
|
||||
@ -186,9 +186,9 @@ class Zend_Gdata_AuthSub
|
||||
* get token information
|
||||
*
|
||||
* @param string $token The token to retrieve information about
|
||||
* @param Zend_Http_Client $client (optional) HTTP client to use to
|
||||
* @param Zend_Http_Client $client (optional) HTTP client to use to
|
||||
* make the request
|
||||
* @param string $request_uri (optional) URI to which to direct
|
||||
* @param string $request_uri (optional) URI to which to direct
|
||||
* the information request
|
||||
*/
|
||||
public static function getAuthSubTokenInfo(
|
||||
|
Reference in New Issue
Block a user