Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core\oauth2\discovery\imsbadgeconnect Class Reference
Inheritance diagram for core\oauth2\discovery\imsbadgeconnect:
core\oauth2\discovery\base_definition core\oauth2\service\imsobv2p1

Static Public Member Functions

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 get_discovery_endpoint_url (issuer $issuer)
 Get the URL for the discovery manifest.
 

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()

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\facebook, core\oauth2\service\microsoft, and core\oauth2\service\nextcloud.

◆ create_field_mappings()

static core\oauth2\discovery\imsbadgeconnect::create_field_mappings ( issuer $issuer)
staticprotected

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.

Reimplemented in core\oauth2\service\imsobv2p1.

◆ discover_endpoints()

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.

◆ get_discovery_endpoint_url()

static core\oauth2\discovery\imsbadgeconnect::get_discovery_endpoint_url ( issuer $issuer)
static

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.

◆ process_configuration_json()

static core\oauth2\discovery\imsbadgeconnect::process_configuration_json ( issuer $issuer,
stdClass $info )
staticprotected

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\imsbadgeconnect::register ( issuer $issuer)
staticprotected

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: