This repository was archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Validates if 'lis_outcome_service_url' and 'lis_result_sourcedid…
…' fields exist (#95) * Check if 'lis_outcome_service_url' and 'lis_result_sourcedid' fields exist before register them in control file * Fix unit tests related to outcome_service_url * Minor update to remove unused mock
- Loading branch information
Showing
3 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -45,7 +45,7 @@ def factory_lti11_basic_launch_args(oauth_consumer_key: str, oauth_consumer_secr | |
return args | ||
|
||
|
||
def factory_lti11_complete_launch_args(lms_vendor: str) -> Dict[str, str]: | ||
def factory_lti11_complete_launch_args(lms_vendor: str, role: str='Instructor') -> Dict[str, str]: | ||
""" | ||
Valid response when retrieving jwks from the platform. | ||
""" | ||
|
@@ -81,7 +81,7 @@ def factory_lti11_complete_launch_args(lms_vendor: str) -> Dict[str, str]: | |
'oauth_callback': ['about:blank'.encode()], | ||
'resource_link_id': ['888efe72d4bbbdf90619353bb8ab5965ccbe9b3f'.encode()], | ||
'resource_link_title': ['IllumiDesk'.encode()], | ||
'roles': ['Instructor'.encode()], | ||
'roles': ['Instructor'.encode() if role == 'Instructor' else role.encode()], | ||
'tool_consumer_info_product_family_code': [lms_vendor.encode()], | ||
'tool_consumer_info_version': ['cloud'.encode()], | ||
'tool_consumer_instance_contact_email': ['[email protected]'.encode()], | ||
|