Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: