|
moodle_url moodle_url | $issuerurl |
| the base URL for the auth server which was last used during a read.
|
|
stdClass stdClass | $metadata |
| the config object read from the discovery document.
|
|
◆ __construct()
core\oauth2\discovery\auth_server_config_reader::__construct |
( |
protected http_client | $httpclient, |
|
|
protected string | $wellknownsuffix = 'oauth-authorization-server' ) |
Constructor.
- Parameters
-
http_client | $httpclient | an http client instance. |
string | $wellknownsuffix | the well-known suffix, defaulting to 'oauth-authorization-server'. |
◆ get_configuration_url()
core\oauth2\discovery\auth_server_config_reader::get_configuration_url |
( |
| ) |
|
|
protected |
Get the Auth server metadata URL.
Per , if the issuer URL contains a path component, the well known suffix is added between the host and path components.
- Return values
-
moodle_url | the full URL to the auth server metadata. |
◆ read_configuration()
core\oauth2\discovery\auth_server_config_reader::read_configuration |
( |
\moodle_url | $issuerurl | ) |
|
Read the metadata from the remote host.
- Parameters
-
- Return values
-
stdClass | the configuration data object. |
- Exceptions
-
ClientException|GuzzleHttp\Exception\GuzzleException | if the http client experiences any problems. |
◆ validate_uri()
core\oauth2\discovery\auth_server_config_reader::validate_uri |
( |
| ) |
|
|
protected |
Make sure the base URI is suitable for use in discovery.
- Return values
-
- Exceptions
-
The documentation for this class was generated from the following file:
- lib/classes/oauth2/discovery/auth_server_config_reader.php