Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Google_Auth_Simple Class Reference
Inheritance diagram for Google_Auth_Simple:
Google_Auth_Abstract

Public Member Functions

 __construct (Google_Client $client, $config=null)
 
 authenticatedRequest (Google_Http_Request $request)
 Perform an authenticated / signed apiHttpRequest.
 
 sign (Google_Http_Request $request)
 

Member Function Documentation

◆ authenticatedRequest()

Google_Auth_Simple::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_Simple::sign ( Google_Http_Request $request)

Reimplemented from Google_Auth_Abstract.


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