Gdata/AuthSub.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- Gdata
- Version
- $Id$
\Zend_Gdata_AuthSub
- See
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Methods

AuthSubRevokeToken(string $token, \Zend_Http_Client $client = null, string $request_uri = self::AUTHSUB_REVOKE_TOKEN_URI) : booleanRevoke a token
| Name | Type | Description |
|---|---|---|
| $token | string | The token to revoke |
| $client | \Zend_Http_Client | (optional) HTTP client to use to make the request |
| $request_uri | string | (optional) URI to which to direct the revokation request |
| Type | Description |
|---|---|
| boolean | Whether the revokation was successful |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_HttpException |

getAuthSubSessionToken(string $token, \Zend_Http_Client $client = null, string $request_uri = self::AUTHSUB_SESSION_TOKEN_URI) : stringUpgrades a single use token to a session token
| Name | Type | Description |
|---|---|---|
| $token | string | The single use token which is to be upgraded |
| $client | \Zend_Http_Client | (optional) HTTP client to use to |
| $request_uri | string | (optional) URI to which to direct |
| Type | Description |
|---|---|
| string | The upgraded token value |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_AuthException | |
| \Zend_Gdata_App_HttpException |

getAuthSubTokenInfo(string $token, \Zend_Http_Client $client = null, string $request_uri = self::AUTHSUB_TOKEN_INFO_URI) : voidget token information
| Name | Type | Description |
|---|---|---|
| $token | string | The token to retrieve information about |
| $client | \Zend_Http_Client | (optional) HTTP client to use to |
| $request_uri | string | (optional) URI to which to direct |

getAuthSubTokenUri(string $next, string $scope, int $secure = 0, int $session = 0, string $request_uri = self::AUTHSUB_REQUEST_URI) : voidCreates a URI to request a single-use AuthSub token.
| Name | Type | Description |
|---|---|---|
| $next | string | (required) URL identifying the service to be
The resulting token will enable access to the specified service only. Some services may limit scope further, such as read-only access. |
| $scope | string | (required) URL identifying the service to be |
| $secure | int | (optional) Boolean flag indicating whether the |
| $session | int | (optional) Boolean flag indicating whether |
| $request_uri | string | (optional) URI to which to direct the |

getHttpClient(string $token, \Zend_Gdata_HttpClient $client = null) : voidRetrieve a HTTP client object with AuthSub credentials attached as the Authorization header
| Name | Type | Description |
|---|---|---|
| $token | string | The token to retrieve information about |
| $client | \Zend_Gdata_HttpClient | (optional) HTTP client to use to make the request |