Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_AuthSub Class Reference

Static Public Member Functions

static getAuthSubTokenUri ($next, $scope, $secure=0, $session=0, $request_uri=self::AUTHSUB_REQUEST_URI)
static getAuthSubSessionToken ($token, $client=null, $request_uri=self::AUTHSUB_SESSION_TOKEN_URI)
static AuthSubRevokeToken ($token, $client=null, $request_uri=self::AUTHSUB_REVOKE_TOKEN_URI)
static getAuthSubTokenInfo ($token, $client=null, $request_uri=self::AUTHSUB_TOKEN_INFO_URI)
static getHttpClient ($token, $client=null)

Data Fields

const AUTHSUB_REQUEST_URI = 'https://www.google.com/accounts/AuthSubRequest'
const AUTHSUB_SESSION_TOKEN_URI = 'https://www.google.com/accounts/AuthSubSessionToken'
const AUTHSUB_REVOKE_TOKEN_URI = 'https://www.google.com/accounts/AuthSubRevokeToken'
const AUTHSUB_TOKEN_INFO_URI = 'https://www.google.com/accounts/AuthSubTokenInfo'

Detailed Description

Definition at line 46 of file AuthSub.php.


Member Function Documentation

static AuthSubRevokeToken ( token,
client = null,
request_uri = self::AUTHSUB_REVOKE_TOKEN_URI 
) [static]

Revoke a token

Parameters:
string$tokenThe token to revoke
Zend_Http_Client$client(optional) HTTP client to use to make the request
string$request_uri(optional) URI to which to direct the revokation request
Returns:
boolean Whether the revokation was successful
Exceptions:
Zend_Gdata_App_HttpException

Definition at line 152 of file AuthSub.php.

Here is the call graph for this function:

static getAuthSubSessionToken ( token,
client = null,
request_uri = self::AUTHSUB_SESSION_TOKEN_URI 
) [static]

Upgrades a single use token to a session token

Parameters:
string$tokenThe single use token which is to be upgraded
Zend_Http_Client$client(optional) HTTP client to use to make the request
string$request_uri(optional) URI to which to direct the session token upgrade
Returns:
string The upgraded token value
Exceptions:
Zend_Gdata_App_AuthException
Zend_Gdata_App_HttpException

Definition at line 102 of file AuthSub.php.

Here is the call graph for this function:

static getAuthSubTokenInfo ( token,
client = null,
request_uri = self::AUTHSUB_TOKEN_INFO_URI 
) [static]

get token information

Parameters:
string$tokenThe token to retrieve information about
Zend_Http_Client$client(optional) HTTP client to use to make the request
string$request_uri(optional) URI to which to direct the information request

Definition at line 194 of file AuthSub.php.

Here is the call graph for this function:

static getAuthSubTokenUri ( next,
scope,
secure = 0,
session = 0,
request_uri = self::AUTHSUB_REQUEST_URI 
) [static]

Creates a URI to request a single-use AuthSub token.

Parameters:
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.
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 as read-only access.
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.
int$session(optional) Boolean flag indicating whether the one-time-use token may be exchanged for a session token (1) or not (0).
string$request_uri(optional) URI to which to direct the authentication request.

Definition at line 79 of file AuthSub.php.

static getHttpClient ( token,
client = null 
) [static]

Retrieve a HTTP client object with AuthSub credentials attached as the Authorization header

Parameters:
string$tokenThe token to retrieve information about
Zend_Gdata_HttpClient$client(optional) HTTP client to use to make the request

Definition at line 227 of file AuthSub.php.

Here is the caller graph for this function:


Field Documentation

const AUTHSUB_REQUEST_URI = 'https://www.google.com/accounts/AuthSubRequest'

Definition at line 49 of file AuthSub.php.

const AUTHSUB_REVOKE_TOKEN_URI = 'https://www.google.com/accounts/AuthSubRevokeToken'

Definition at line 53 of file AuthSub.php.

const AUTHSUB_SESSION_TOKEN_URI = 'https://www.google.com/accounts/AuthSubSessionToken'

Definition at line 51 of file AuthSub.php.

const AUTHSUB_TOKEN_INFO_URI = 'https://www.google.com/accounts/AuthSubTokenInfo'

Definition at line 55 of file AuthSub.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations