|
Moodle
2.2.1
http://www.collinsharper.com
|
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' |
Definition at line 46 of file AuthSub.php.
| static AuthSubRevokeToken | ( | $ | token, |
| $ | client = null, |
||
| $ | request_uri = self::AUTHSUB_REVOKE_TOKEN_URI |
||
| ) | [static] |
Revoke a token
| string | $token | The 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 |
| Zend_Gdata_App_HttpException |
Definition at line 152 of file AuthSub.php.

| static getAuthSubSessionToken | ( | $ | token, |
| $ | client = null, |
||
| $ | request_uri = self::AUTHSUB_SESSION_TOKEN_URI |
||
| ) | [static] |
Upgrades a single use token to a session token
| string | $token | The 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 |
Definition at line 102 of file AuthSub.php.

| static getAuthSubTokenInfo | ( | $ | token, |
| $ | client = null, |
||
| $ | request_uri = self::AUTHSUB_TOKEN_INFO_URI |
||
| ) | [static] |
get token information
| string | $token | The 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.

| 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.
| 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
| string | $token | The 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.

| 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.