Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

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

Defines 8 classes

Google_Service_Oauth2:: (3 methods):
  __construct()
  getCertForOpenIdConnect()
  tokeninfo()

Google_Service_Oauth2_Userinfo_Resource:: (1 method):
  get()

Google_Service_Oauth2_UserinfoV2_Resource:: (0 methods):

Google_Service_Oauth2_UserinfoV2Me_Resource:: (1 method):
  get()

Google_Service_Oauth2_Jwk:: (2 methods):
  setKeys()
  getKeys()

Google_Service_Oauth2_JwkKeys:: (12 methods):
  setAlg()
  getAlg()
  setE()
  getE()
  setKid()
  getKid()
  setKty()
  getKty()
  setN()
  getN()
  setUse()
  getUse()

Google_Service_Oauth2_Tokeninfo:: (18 methods):
  setAccessType()
  getAccessType()
  setAudience()
  getAudience()
  setEmail()
  getEmail()
  setExpiresIn()
  getExpiresIn()
  setIssuedTo()
  getIssuedTo()
  setScope()
  getScope()
  setTokenHandle()
  getTokenHandle()
  setUserId()
  getUserId()
  setVerifiedEmail()
  getVerifiedEmail()

Google_Service_Oauth2_Userinfoplus:: (22 methods):
  setEmail()
  getEmail()
  setFamilyName()
  getFamilyName()
  setGender()
  getGender()
  setGivenName()
  getGivenName()
  setHd()
  getHd()
  setId()
  getId()
  setLink()
  getLink()
  setLocale()
  getLocale()
  setName()
  getName()
  setPicture()
  getPicture()
  setVerifiedEmail()
  getVerifiedEmail()


Class: Google_Service_Oauth2  - X-Ref

Service definition for Oauth2 (v2).

<p>
Lets you access OAuth2 protocol related APIs.</p>

<p>
For more information about this service, see the API
<a href="https://developers.google.com/accounts/docs/OAuth2" target="_blank">Documentation</a>
</p>

__construct(Google_Client $client)   X-Ref
Constructs the internal representation of the Oauth2 service.

param: Google_Client $client

getCertForOpenIdConnect($optParams = array()   X-Ref
(getCertForOpenIdConnect)

param: array $optParams Optional parameters.
return: Google_Service_Oauth2_Jwk

tokeninfo($optParams = array()   X-Ref
(tokeninfo)

param: array $optParams Optional parameters.
return: Google_Service_Oauth2_Tokeninfo

Class: Google_Service_Oauth2_Userinfo_Resource  - X-Ref

The "userinfo" collection of methods.
Typical usage is:
<code>
$oauth2Service = new Google_Service_Oauth2(...);
$userinfo = $oauth2Service->userinfo;
</code>

get($optParams = array()   X-Ref
(userinfo.get)

param: array $optParams Optional parameters.
return: Google_Service_Oauth2_Userinfoplus

Class: Google_Service_Oauth2_UserinfoV2_Resource  - X-Ref

The "v2" collection of methods.
Typical usage is:
<code>
$oauth2Service = new Google_Service_Oauth2(...);
$v2 = $oauth2Service->v2;
</code>

Class: Google_Service_Oauth2_UserinfoV2Me_Resource  - X-Ref

The "me" collection of methods.
Typical usage is:
<code>
$oauth2Service = new Google_Service_Oauth2(...);
$me = $oauth2Service->me;
</code>

get($optParams = array()   X-Ref
(me.get)

param: array $optParams Optional parameters.
return: Google_Service_Oauth2_Userinfoplus

Class: Google_Service_Oauth2_Jwk  - X-Ref

setKeys($keys)   X-Ref
No description

getKeys()   X-Ref
No description

Class: Google_Service_Oauth2_JwkKeys  - X-Ref

setAlg($alg)   X-Ref
No description

getAlg()   X-Ref
No description

setE($e)   X-Ref
No description

getE()   X-Ref
No description

setKid($kid)   X-Ref
No description

getKid()   X-Ref
No description

setKty($kty)   X-Ref
No description

getKty()   X-Ref
No description

setN($n)   X-Ref
No description

getN()   X-Ref
No description

setUse($use)   X-Ref
No description

getUse()   X-Ref
No description

Class: Google_Service_Oauth2_Tokeninfo  - X-Ref

setAccessType($accessType)   X-Ref
No description

getAccessType()   X-Ref
No description

setAudience($audience)   X-Ref
No description

getAudience()   X-Ref
No description

setEmail($email)   X-Ref
No description

getEmail()   X-Ref
No description

setExpiresIn($expiresIn)   X-Ref
No description

getExpiresIn()   X-Ref
No description

setIssuedTo($issuedTo)   X-Ref
No description

getIssuedTo()   X-Ref
No description

setScope($scope)   X-Ref
No description

getScope()   X-Ref
No description

setTokenHandle($tokenHandle)   X-Ref
No description

getTokenHandle()   X-Ref
No description

setUserId($userId)   X-Ref
No description

getUserId()   X-Ref
No description

setVerifiedEmail($verifiedEmail)   X-Ref
No description

getVerifiedEmail()   X-Ref
No description

Class: Google_Service_Oauth2_Userinfoplus  - X-Ref

setEmail($email)   X-Ref
No description

getEmail()   X-Ref
No description

setFamilyName($familyName)   X-Ref
No description

getFamilyName()   X-Ref
No description

setGender($gender)   X-Ref
No description

getGender()   X-Ref
No description

setGivenName($givenName)   X-Ref
No description

getGivenName()   X-Ref
No description

setHd($hd)   X-Ref
No description

getHd()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setLink($link)   X-Ref
No description

getLink()   X-Ref
No description

setLocale($locale)   X-Ref
No description

getLocale()   X-Ref
No description

setName($name)   X-Ref
No description

getName()   X-Ref
No description

setPicture($picture)   X-Ref
No description

getPicture()   X-Ref
No description

setVerifiedEmail($verifiedEmail)   X-Ref
No description

getVerifiedEmail()   X-Ref
No description