Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
repository_nextcloud\issuer_management Class Reference

Provide static functions for creating and validating issuers. More...

Static Public Member Functions

static is_valid_issuer (\core\oauth2\issuer $issuer)
 Check if an issuer provides all endpoints that are required by repository_nextcloud.
 
static parse_endpoint_url (string $endpointname, core\oauth2\issuer $issuer)
 Returns the parsed url parts of an endpoint of an issuer.
 

Detailed Description

Provide static functions for creating and validating issuers.

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

Member Function Documentation

◆ is_valid_issuer()

static repository_nextcloud\issuer_management::is_valid_issuer ( \core\oauth2\issuer $issuer)
static

Check if an issuer provides all endpoints that are required by repository_nextcloud.

Parameters
core\oauth2\issuer$issuerAn issuer.
Return values
boolTrue, if all endpoints exist; false otherwise.

◆ parse_endpoint_url()

static repository_nextcloud\issuer_management::parse_endpoint_url ( string $endpointname,
core\oauth2\issuer $issuer )
static

Returns the parsed url parts of an endpoint of an issuer.

Parameters
string$endpointname
core\oauth2\issuer$issuer
Return values
arrayparseurl [scheme => https/http, host=>'hostname', port=>443, path=>'path']
Exceptions
configuration_exceptionif an endpoint is undefined

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