Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 402] [Versions 39 and 403]

(no description)

File Size: 120 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Google_Auth_AppIdentity:: (5 methods):
  __construct()
  authenticateForScope()
  retrieveToken()
  authenticatedRequest()
  sign()


Class: Google_Auth_AppIdentity  - X-Ref

Authentication via the Google App Engine App Identity service.

__construct(Google_Client $client, $config = null)   X-Ref
No description

authenticateForScope($scopes)   X-Ref
Retrieve an access token for the scopes supplied.


retrieveToken($scopes, $cacheKey)   X-Ref
Retrieve a new access token and store it in cache

param: mixed $scopes
param: string $cacheKey

authenticatedRequest(Google_Http_Request $request)   X-Ref
Perform an authenticated / signed apiHttpRequest.
This function takes the apiHttpRequest, calls apiAuth->sign on it
(which can modify the request in what ever way fits the auth mechanism)
and then calls apiCurlIO::makeRequest on the signed request

param: Google_Http_Request $request
return: Google_Http_Request The resulting HTTP response including the

sign(Google_Http_Request $request)   X-Ref
No description