forked from opencast/opencast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make LTI "Custom role" configuration more configurable (opencast#5312)
Hi, this is my first contribution to this repository. * The problem: Current implementation of custom roles allows only one custom role also it only accepts string that are exactly equal to role name which can limit configurability. This pull request implements ability to define multiple custom roles and custom roles that need to be added for example: ``` lti.custom_role_name.1=Instructor lti.custom_roles.1=ROLE_MOODLE_INSTRUCTOR lti.custom_role_name.2=Learner lti.custom_roles.2=ROLE_MOODLE_LEARNER -- Additionally theres regex support for matching roles -- lti.custom_role_name.3=ims\/lis\/Administrator lti.custom_roles.3=ROLE_MOODLE_ADMINISTRATOR ``` ### Your pull request should… * [x] have a concise title * [x] [close an accompanying issue](https://help.github.com/en/articles/closing-issues-using-keywords) if one exists * [x] [be against the correct branch](https://docs.opencast.org/develop/developer/development-process#acceptance-criteria-for-patches-in-different-versions) * [x] include migration scripts and documentation, if appropriate * [x] pass automated tests * [x] have a clean commit history * [x] [have proper commit messages (title and body) for all commits](https://medium.com/@steveamaza/e028865e5791)
- Loading branch information
Showing
3 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
docs/guides/admin/docs/releasenotes/changes-to-lti-configuration.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
With this release you can configure multiple LTI Custom roles, identifying each of them with a key index for example lti.custom_role_name.1=... lti.custom_roles.1=..., lti.custom_role_name.2=... lti.custom_roles.2=... etc. | ||
Additionally, there's custom_role_name regex support for more flexible roles matching. | ||
Legacy lti.custom_role_name=... and lti.custom_roles=... configuration keys are still supported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters