Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 402 and 403]

(no description)

File Size: 189 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

moodlenet:: (4 methods):
  init()
  create_endpoints()
  discover_endpoints()
  client_registration()


Class: moodlenet  - X-Ref

MoodleNet OAuth 2 configuration.

init()   X-Ref
Get the issuer template to display in the form.

return: issuer the issuer.

create_endpoints(issuer $issuer)   X-Ref
Create the endpoints for the issuer.

param: issuer $issuer the issuer instance.
return: issuer the issuer instance.

discover_endpoints($issuer)   X-Ref
Read the OAuth 2 Auth Server Metadata.

param: issuer $issuer the issuer instance.
return: int the number of endpoints created.

client_registration(issuer $issuer)   X-Ref
Perform (open) OAuth 2 Dynamic Client Registration with the MoodleNet application.

param: issuer $issuer the issuer instance containing the service baseurl.
return: void