Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Auth_AppIdentity Class Reference
Inheritance diagram for Google_Auth_AppIdentity:
Google_Auth_Abstract

Public Member Functions

 __construct (Google_Client $client, $config=null)
 
 authenticatedRequest (Google_Http_Request $request)
 Perform an authenticated / signed apiHttpRequest.
 
 authenticateForScope ($scopes)
 Retrieve an access token for the scopes supplied.
 
 sign (Google_Http_Request $request)
 

Public Attributes

const CACHE_PREFIX = "Google_Auth_AppIdentity::"
 

Member Function Documentation

◆ authenticatedRequest()

Google_Auth_AppIdentity::authenticatedRequest ( Google_Http_Request $request)

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

Parameters
Google_Http_Request$request
Return values
Google_Http_RequestThe resulting HTTP response including the responseHttpCode, responseHeaders and responseBody.

Reimplemented from Google_Auth_Abstract.

◆ sign()

Google_Auth_AppIdentity::sign ( Google_Http_Request $request)

Reimplemented from Google_Auth_Abstract.


The documentation for this class was generated from the following file: