Class for Open ID Connect discovery definition.
More...
Class for Open ID Connect discovery definition.
- Since
- Moodle 3.11
- Copyright
- 2021 Sara Arjona (sara@.nosp@m.mood.nosp@m.le.co.nosp@m.m)
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ 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 | $issuer | Issuer the endpoints should be created for. |
string | $url | Discovery endpoint URL. |
- Return values
-
endpoint | The endpoint created. |
- Exceptions
-
◆ create_endpoints()
static core\oauth2\discovery\base_definition::create_endpoints |
( |
issuer | $issuer | ) |
|
|
staticinherited |
◆ create_field_mappings()
static core\oauth2\discovery\openidconnect::create_field_mappings |
( |
issuer | $issuer | ) |
|
|
staticprotected |
Process how to map user field information.
- Parameters
-
issuer | $issuer | The OAuth issuer the endpoints should be discovered for. |
- Return values
-
Reimplemented from core\oauth2\discovery\base_definition.
◆ 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
-
- Return values
-
int | The number of discovered services. |
◆ get_discovery_endpoint_url()
static core\oauth2\discovery\openidconnect::get_discovery_endpoint_url |
( |
issuer | $issuer | ) |
|
|
static |
Get the URL for the discovery manifest.
- Parameters
-
issuer | $issuer | The OAuth issuer the endpoints should be discovered for. |
- Return values
-
string | The URL of the discovery file, containing the endpoints. |
Reimplemented from core\oauth2\discovery\base_definition.
◆ process_configuration_json()
static core\oauth2\discovery\openidconnect::process_configuration_json |
( |
issuer | $issuer, |
|
|
stdClass | $info ) |
|
staticprotected |
Process the discovery information and create endpoints defined with the expected format.
- Parameters
-
issuer | $issuer | The OAuth issuer the endpoints should be discovered for. |
stdClass | $info | The discovery information, with the endpoints to process and create. |
- Return values
-
Reimplemented from core\oauth2\discovery\base_definition.
◆ register()
static core\oauth2\discovery\openidconnect::register |
( |
issuer | $issuer | ) |
|
|
staticprotected |
Self-register the issuer if the 'registration' endpoint exists and client id and secret aren't defined.
- Parameters
-
issuer | $issuer | The OAuth issuer to register. |
- Return values
-
Reimplemented from core\oauth2\discovery\base_definition.
The documentation for this class was generated from the following file: