Wrapper around Zend_Http_Client to facilitate Google's "Account Authentication Proxy for Web-Based Applications".
see | |
---|---|
category | Zend |
package | Zend_Gdata |
subpackage | Gdata |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
AuthSubRevokeToken(string $token, \Zend_Http_Client $client= null
, string $request_uri= self::AUTHSUB_REVOKE_TOKEN_URI
) : boolean
string
The token to revoke
\Zend_Http_Client
(optional) HTTP client to use to make the request
string
(optional) URI to which to direct the revokation request
\Zend_Gdata_App_HttpException |
---|
boolean
Whether the revokation was successfulgetAuthSubSessionToken(string $token, \Zend_Http_Client $client= null
, string $request_uri= self::AUTHSUB_SESSION_TOKEN_URI
) : string
string
The single use token which is to be upgraded
\Zend_Http_Client
(optional) HTTP client to use to make the request
string
(optional) URI to which to direct the session token upgrade
\Zend_Gdata_App_AuthException |
|
---|---|
\Zend_Gdata_App_HttpException |
string
The upgraded token valuegetAuthSubTokenInfo(string $token, \Zend_Http_Client $client= null
, string $request_uri= self::AUTHSUB_TOKEN_INFO_URI
)
string
The token to retrieve information about
\Zend_Http_Client
(optional) HTTP client to use to make the request
string
(optional) URI to which to direct the information request
getAuthSubTokenUri(string $next, string $scope, integer $secure= 0
, integer $session= 0
, string $request_uri= self::AUTHSUB_REQUEST_URI
)
string
(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.
string
(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.
integer
(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.
integer
(optional) Boolean flag indicating whether the one-time-use token may be exchanged for a session token (1) or not (0).
string
(optional) URI to which to direct the authentication request.
getHttpClient(string $token, \Zend_Gdata_HttpClient $client = null
)
string
The token to retrieve information about
\Zend_Gdata_HttpClient
(optional) HTTP client to use to make the request
AUTHSUB_REQUEST_URI = 'https://www.google.com/accounts/AuthSubRequest'
AUTHSUB_REVOKE_TOKEN_URI = 'https://www.google.com/accounts/AuthSubRevokeToken'
AUTHSUB_SESSION_TOKEN_URI = 'https://www.google.com/accounts/AuthSubSessionToken'
AUTHSUB_TOKEN_INFO_URI = 'https://www.google.com/accounts/AuthSubTokenInfo'