Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core\oauth2\service\google Class Reference
Inheritance diagram for core\oauth2\service\google:
core\oauth2\discovery\openidconnect core\oauth2\service\issuer_interface core\oauth2\discovery\base_definition

Static Public Member Functions

static create_endpoints (issuer $issuer)
 Create endpoints for this issuer.
 
static create_endpoints (issuer $issuer)
 Create endpoints for this issuer.
 
static discover_endpoints ($issuer)
 If the discovery endpoint exists for this issuer, try and determine the list of valid endpoints.
 
static discover_endpoints ($issuer)
 If the discovery endpoint exists for this issuer, try and determine the list of valid endpoints.
 
static get_discovery_endpoint_url (issuer $issuer)
 Get the URL for the discovery manifest.
 
static init ()
 Build an OAuth2 issuer, with all the default values for this service.
 

Static Protected Member Functions

static create_discovery_endpoint (issuer $issuer, string $url)
 Helper method to create discovery endpoint.
 
static create_field_mappings (issuer $issuer)
 Process how to map user field information.
 
static process_configuration_json (issuer $issuer, stdClass $info)
 Process the discovery information and create endpoints defined with the expected format.
 
static register (issuer $issuer)
 Self-register the issuer if the 'registration' endpoint exists and client id and secret aren't defined.
 

Member Function Documentation

◆ create_discovery_endpoint()

static core\oauth2\discovery\base_definition::create_discovery_endpoint ( issuer $issuer,
string $url )
staticprotectedinherited

Helper method to create discovery endpoint.

Parameters
issuer$issuerIssuer the endpoints should be created for.
string$urlDiscovery endpoint URL.
Return values
endpointThe endpoint created.
Exceptions
core\invalid_persistent_exception

◆ create_endpoints() [1/2]

static core\oauth2\discovery\base_definition::create_endpoints ( issuer $issuer)
staticinherited

Create endpoints for this issuer.

Parameters
issuer$issuerIssuer the endpoints should be created for.
Return values
issuer

Reimplemented in core\oauth2\service\clever, core\oauth2\service\facebook, core\oauth2\service\microsoft, and core\oauth2\service\nextcloud.

◆ create_endpoints() [2/2]

static core\oauth2\service\issuer_interface::create_endpoints ( issuer $issuer)
staticinherited

Create endpoints for this issuer.

Parameters
issuer$issuerIssuer the endpoints should be created for.
Return values
issuer

Implemented in core\oauth2\service\clever, core\oauth2\service\facebook, core\oauth2\service\microsoft, core\oauth2\service\moodlenet, and core\oauth2\service\nextcloud.

◆ create_field_mappings()

static core\oauth2\discovery\openidconnect::create_field_mappings ( issuer $issuer)
staticprotectedinherited

Process how to map user field information.

Parameters
issuer$issuerThe OAuth issuer the endpoints should be discovered for.
Return values
void

Reimplemented from core\oauth2\discovery\base_definition.

◆ discover_endpoints() [1/2]

static core\oauth2\discovery\base_definition::discover_endpoints ( $issuer)
staticinherited

If the discovery endpoint exists for this issuer, try and determine the list of valid endpoints.

Parameters
issuer$issuer
Return values
intThe number of discovered services.

◆ discover_endpoints() [2/2]

static core\oauth2\service\issuer_interface::discover_endpoints ( $issuer)
staticinherited

If the discovery endpoint exists for this issuer, try and determine the list of valid endpoints.

Parameters
issuer$issuer
Return values
intThe number of discovered services.

Implemented in core\oauth2\service\moodlenet.

◆ get_discovery_endpoint_url()

static core\oauth2\discovery\openidconnect::get_discovery_endpoint_url ( issuer $issuer)
staticinherited

Get the URL for the discovery manifest.

Parameters
issuer$issuerThe OAuth issuer the endpoints should be discovered for.
Return values
stringThe URL of the discovery file, containing the endpoints.

Reimplemented from core\oauth2\discovery\base_definition.

◆ init()

static core\oauth2\service\google::init ( )
static

Build an OAuth2 issuer, with all the default values for this service.

Return values
issuer|nullThe issuer initialised with proper default values.

Implements core\oauth2\service\issuer_interface.

◆ process_configuration_json()

static core\oauth2\discovery\openidconnect::process_configuration_json ( issuer $issuer,
stdClass $info )
staticprotectedinherited

Process the discovery information and create endpoints defined with the expected format.

Parameters
issuer$issuerThe OAuth issuer the endpoints should be discovered for.
stdClass$infoThe discovery information, with the endpoints to process and create.
Return values
void

Reimplemented from core\oauth2\discovery\base_definition.

◆ register()

static core\oauth2\discovery\openidconnect::register ( issuer $issuer)
staticprotectedinherited

Self-register the issuer if the 'registration' endpoint exists and client id and secret aren't defined.

Parameters
issuer$issuerThe OAuth issuer to register.
Return values
void

Reimplemented from core\oauth2\discovery\base_definition.


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