Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
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. More...
 
static parse_endpoint_url (string $endpointname, core\oauth2\issuer $issuer)
 Returns the parsed url parts of an endpoint of an issuer. More...
 

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: