Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Auth_AssertionCredentials Class Reference

Public Member Functions

 __construct ( $serviceAccountName, $scopes, $privateKey, $privateKeyPassword='notasecret', $assertionType='http://oauth.net/grant_type/jwt/1.0/bearer', $sub=false, $useCache=true)
 
 generateAssertion ()
 
 getCacheKey ()
 Generate a unique key to represent this credential.
 

Public Attributes

 $assertionType
 
 $privateKey
 
 $privateKeyPassword
 
 $prn
 
 $scopes
 
 $serviceAccountName
 
 $sub
 
const MAX_TOKEN_LIFETIME_SECS = 3600
 

Constructor & Destructor Documentation

◆ __construct()

Google_Auth_AssertionCredentials::__construct ( $serviceAccountName,
$scopes,
$privateKey,
$privateKeyPassword = 'notasecret',
$assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer',
$sub = false,
$useCache = true )
Parameters
$serviceAccountName
$scopesarray List of scopes
$privateKey
string$privateKeyPassword
string$assertionType
bool | string$subThe email address of the user for which the application is requesting delegated access.
booluseCache Whether to generate a cache key and allow automatic caching of the generated token.

Member Function Documentation

◆ getCacheKey()

Google_Auth_AssertionCredentials::getCacheKey ( )

Generate a unique key to represent this credential.

Return values
string

Member Data Documentation

◆ $prn

Google_Auth_AssertionCredentials::$prn

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