-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3, 3.4
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_34_STABLE
-
MDL-59844-master -
Currently, the WebDAV client (lib/webdavlib.php) supports "basic" and "digest" authentication methods. In contrast, applications that use OAuth 2 token-based authentication want to use the "bearer" authentication method. In that method, actual authentication & authorisation has taken place beforehand elsewhere so that username and password have to be neither stored nor transmitted. Instead, credentials are replaced by a token which is passed as a header:
Authorization: Bearer %s , where %s is replaced by a randomly generated token string.
This is required for ownCloud / Nextcloud integrations that use the OAuth 2 code flow for authentication & authorisation. ownCloud and Nextcloud both rely heavily on WebDAV to work with files. Adding Bearer auth would help develop plugins a lot. Sadly it is not possible to just extend the webdav_client class, because all relevant methods are declared private and can therefore not be overriden.
- will help resolve
-
MDL-58943 Create Nextcloud integration, similar to G-Suite and Office
- Closed
-
CONTRIB-6950 Plugin approval: ownCloud (repository_owncloud)
- Closed