-
New Feature
-
Resolution: Done
-
Critical
-
4.1, 4.2
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
MDL-75319-master-2 -
-
6
-
Team Hedgehog Sprint 2.1, Team Hedgehog Sprint 2.2
MoodleNet sharing functionality requires some site administration settings to control access to sharing to MoodleNet and which MoodleNet instance can be shared to.
Requirements
- Since the sharing to MoodleNet functionality is in core and independent from the existing settings for content being sent from MoodleNet into the LMS, it will need to be be a separate section in settings. As discussed with huongn@moodle.com, it should be possible to include this on the same, but under separate sections (to keep all MoodleNet related settings on the same general > MoodleNet category. I would suggest we rename the existing section from "MoodleNet settings" to "MoodleNet inbound settings" and include the new settings under "MoodleNet outbound settings".
- The sharing to MoodleNet functionality needs to be behind an experimental feature flag, which controls whether it is enabled or disabled for the site (disabled by default since it is experimental).
- A single select dropdown is required to select which MoodleNet instance can be shared to. The options should be all MoodleNet OAuth 2 providers that have been configured on the Moodle instance. Although multiple MoodleNet providers may be configured in OAuth settings, the scope for phase 1 of this project is to only allow one of them to be enabled for sharing to.
- If no MoodleNet OAuth providers are configured, the dropdown in #3 should be disabled with the validation indicating that at least one provider needs to be configured to use it.
- The description for the setting added in #3 should clearly outline what the setting is for, and hyperlink to the relevant site admin page to configure MoodleNet OAuth providers (so if the list is empty/incomplete, the admin can easily navigate to complete setting it up).
- The settings should use “progressive disclosure”, where the options such as which site is available to share to should be hidden until the share to MoodleNet feature is enabled (the setting in requirement #2).
- In this issue we should also create a new capability for being able to share to MoodleNet, which is given to editing teachers and managers by default. All following project issues will require both the admin settings and capability, so it makes sense to implement them together here first.
- Behat/unit tests implemented as applicable.
User stories
This issue resolves the following user story:
- As a site admin, I can set any configured MoodleNet OAuth 2 issuer as the available MoodleNet instance to share to, so it is easy for teachers to authorise their LMS account to share to their account on that MoodleNet instance, and so I can control which MoodleNet instance this is allowed for.
- blocks
-
MDL-75933 Implement web services for sharing content to MoodleNet
-
- Closed
-
- is blocked by
-
MDL-77190 Add oauth2service_moodlenet plugin
-
- Closed
-
-
MDL-75650 Add OAuth 2.0 Authorization Server Metadata support to issuers and create MoodleNet issuer
-
- Closed
-
- will help resolve
-
MDL-75316 (PARENT) Implement LMS foundation for sharing content to MoodleNet (share activities)
-
- Closed
-