Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: OAuth 2 Nextcloud service.

OAuth 2 Nextcloud service

From MoodleDocs
Revision as of 14:23, 7 November 2018 by Jan Dageförde (talk | contribs) (Nextcloud prerequisites & setup)

New feature
in Moodle 3.11!



Nextcloud configuration

As a prerequisite, you need Nextcloud in version 14.0.4 (or above). Otherwise, please upgrade to a recent version first. Then you need to register Moodle as an OAuth 2 client as follows:

  1. Log in to Nextcloud using the administrator account.
  2. Open the menu in the top-right corner and select Settings. On the next page, select the Security item in the "Administration" section on the left. At the top of the next page you see the list of registered clients (which is empty initially).
  3. Below "Add client", enter the name of your Moodle (e.g., "Mount Orange School Moodle") in the first field (Name). Note that the name that you enter here will be displayed to your Moodle users.
  4. In the second field (Redirection URI), enter the URL of your Moodle followed by /admin/oauth2callback.php (e.g., "https://school.demo.moodle.net/admin/oauth2callback.php").
  5. Click Add to save. Afterwards, the page might look similar to the screenshot below.
Registration of Moodle as an OAuth 2 client in Nextcloud

Moodle is now allowed to connect to Nextcloud using OAuth 2 authentication.

Moodle configuration

After you have set up Nextcloud, you can configure Moodle.

Info coming soon...