![]() Return to the issuer overview and click on Configure user field mappings. Given the Base URL example above, an exemplary token_endpoint URL is There, click Configure endpoints to configure the services that we want to use, as ownCloud does not support auto discovery.įor the ownCloud Repository plugin four endpoints have to be registered that are ownCloud-specific:īase URL + /index.php/apps/oauth2/api/v1/tokenīase URL + /index.php/apps/oauth2/authorizeīase URL + /ocs/v1.php/apps/files_sharing/api/v1/shares?format=xmlīase URL + /ocs/v2.php/cloud/user?format=json Ignore the other settings and click Save changes.Īfterwards, your issuer is listed in a table. You need to configure Moodle so that it knows how to talk to your ownCloud server.įor this, a so-called OAuth 2 issuer has to be registered in the admin menu Site administration ► Server ► OAuth 2 services.Ĭhoose the name freely it will only be shown to you.Įnter ClientID and Secret from the ownCloud settings of Add Moodle as a client to ownCloud.Įnable the "Authenticate token requests via HTTP headers" checkbox (if present).Īs Service base URL, enter the full URL to your ownCloud installation, including a custom port (if any).įor example, if the ownCloud installation is at, then this is the base URL. The next steps describe how the necessary issuer is created in Moodle's central OAuth 2 services settings.Īfterwards, an ownCloud repository instance is created using that issuer. However, when the repository is enabled, the admin has to select an issuer which defines the ownCloud server. No additional settings are displayed to the admin when installing the plugin. Those will be required for the configuration in Moodle, so keep them at hand.Ĭopy the content of this repository to repository/owncloud. So the name should be self-explanatory to them.Īfter adding the client, the table displays a corresponding Client Identifier and a secret. The name can be chosen freely, but note that it will presented to ownCloud users, Your Moodle URL + /admin/oauth2callback.phpįor example, if your users reach Moodle at , Go to Settings ► User authentication and add your Moodle installation as a client: Prerequisites: Current ownCloud installation (Recommended: Version 10+) with enabled HTTPS and the ownCloud app. We collect a list of known problems and hints at their resolution below. ![]() Fair warning: The configuration might become very technical. This plugin requires configuration in ownCloud (add Moodle as an allowed client) as well as in Moodle (add ownCloud servers to which users will be able to connect). Remaining limitations have been resolved with Nextcloud 13.0.1 (see Nextcloud Limitations for details). This repository was developed with ownCloud in mind, but it actually works with Nextcloud as well. As a consequence, they work quite similar. Tech-savvy users are not able to add their own ownCloud servers, though, so the Moodle admin is always in control which servers are connected.Īre you using Nextcloud? ownCloud and Nextcloud share the same history. Is your institution using multiple ownCloud servers? Don't worry, a Moodle administrator can connect multiple ownCloud servers that are then presented separately to the users. Without having to download it to their local machine first. This plugin enables Moodle users to have direct access to their private files from ownCloud in the Moodle file picker and the URL resource module,Įnabling to upload files into Moodle directly from their ownCloud,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |