Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core\oauth2\service\facebook Class Reference

Class for Facebook oAuth service, with the specific methods related to it. More...

Inheritance diagram for core\oauth2\service\facebook:

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 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.
 

Detailed Description

Class for Facebook oAuth service, with the specific methods related to it.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

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\service\facebook::create_endpoints ( issuer $issuer)
static

Create endpoints for this issuer.

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

Reimplemented from core\oauth2\discovery\base_definition.

◆ 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\facebook::init ( )
static

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

Return values
issuerThe 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: