[AMOS commit] MDL-70689 oauth2: add support to IMS OBv2.1 service Committed into Git: 2021-01-20 16:23 UTC

[AMOS commit] MDL-70689 oauth2: add support to IMS OBv2.1 service Committed into Git: 2021-01-20 16:23 UTC

by AMOS bot -
Number of replies: 0
Author: Sara Arjona
MDL-70689 oauth2: add support to IMS OBv2.1 service
In order to make easier to create and maintain new OAuth2 services,
a couple of classes have been added:

- discovery\* contains methods related to the discovery system. Until
now, only OpenID Connect was supported by Moodle so all the code was
centralised in api.php.
With this patch, as IMS OBv2.1 has a different discovery system, a new
abstract class (base_definition) has been added to be called and let
every discovery system (OpenID Connect, IMS Badge Connect...)
implement their own methods.

- service\* . Instead of keep adding methods to the api, the service
namespace has been created to store all the standard issuer services.
An interface (issuer_interface) has been created and all the services
should implement it.
This patch creates the "IMS OBv2.1" and "Custom" services and moves
the methods for "Google" service because it uses the OpenID connect
discovery system.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=84e51fb0fdd6cfb6bd0c678377711541a40d48f0
http://github.com/moodle/moodle/commit/84e51fb0fdd6cfb6bd0c678377711541a40d48f0

+ 3.11 en [createnewservice,tool_oauth2]
+ 3.11 en [custom_service,tool_oauth2]
+ 3.11 en [facebook_service,tool_oauth2]
+ 3.11 en [google_service,tool_oauth2]
+ 3.11 en [imsobv2p1_service,tool_oauth2]
+ 3.11 en [microsoft_service,tool_oauth2]
+ 3.11 en [nextcloud_service,tool_oauth2]