Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: