[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Gdata/ -> AuthSub.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 246 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Gdata_AuthSub:: (5 methods):
  getAuthSubTokenUri()
  getAuthSubSessionToken()
  AuthSubRevokeToken()
  getAuthSubTokenInfo()
  getHttpClient()


Class: Zend_Gdata_AuthSub  - X-Ref

Wrapper around Zend_Http_Client to facilitate Google's "Account Authentication
Proxy for Web-Based Applications".

getAuthSubTokenUri($next, $scope, $secure=0, $session=0,$request_uri = self::AUTHSUB_REQUEST_URI)   X-Ref
Creates a URI to request a single-use AuthSub token.

param: string $next (required) URL identifying the service to be
param: string $scope (required) URL identifying the service to be
param: int $secure (optional) Boolean flag indicating whether the
param: int $session (optional) Boolean flag indicating whether
param: string $request_uri (optional) URI to which to direct the

getAuthSubSessionToken($token, $client = null,$request_uri = self::AUTHSUB_SESSION_TOKEN_URI)   X-Ref
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: string $request_uri (optional) URI to which to direct
return: string The upgraded token value

AuthSubRevokeToken($token, $client = null,$request_uri = self::AUTHSUB_REVOKE_TOKEN_URI)   X-Ref
Revoke a token

param: string $token The token to revoke
param: Zend_Http_Client $client (optional) HTTP client to use to make the request
param: string $request_uri (optional) URI to which to direct the revokation request
return: boolean Whether the revokation was successful

getAuthSubTokenInfo($token, $client = null, $request_uri = self::AUTHSUB_TOKEN_INFO_URI)   X-Ref
get token information

param: string $token The token to retrieve information about
param: Zend_Http_Client $client (optional) HTTP client to use to
param: string $request_uri (optional) URI to which to direct

getHttpClient($token, $client = null)   X-Ref
Retrieve a HTTP client object with AuthSub credentials attached
as the Authorization header

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



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1