Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Updating Learn LTI backend to work with LTI 1 Protocol as well #4

Merged
merged 3 commits into from Jul 7, 2020

Conversation

adbindal
Copy link
Contributor

@adbindal adbindal commented Jul 7, 2020

Description

Functional Changes

Current Learn-LTI backend was not functioning correctly with our Moodle Instance when onboarded via LTI 1. Below are the issues which needs to be handled before it could become functional again: -

  • Assignments in LTI 1 do not have platform information, hence, there's no Platforms Personalization possible for them. Guarding those changes inside the appropriate LtiVersion check
  • The tool communicates with the LMS via OAuth1 in case of LTI 1 and that too with a hardcoded secret. The Users Api when querying members from LMS was returning 204 NO DATA as it was not getting any members from that function. This was a bug in the parsing logic of underlying LtiLibrary. The issue requires us to update to a newer version of the Library which adds support for this parsing.

Miscellaneous Changes

As a part of the PR, we are also making few logical changes listed below.

  • Updating the Connect Api to depend on LTI1Binding instead of directly depending on LtiLibrary.
  • Updating the .env settings for Service Urls to adhere to consistent Url handling in client code.

Aditya Bindal added 3 commits July 7, 2020 13:30
…LTI 1.3.

- LTI 1 does not map platform for assignments, hence, it is not possible to personalize them as per the LMS.
…API to work with LTI 1

- LtiLibrary was not able to parse the ContextRole for the member correctly. Updating to newer nuget version fixes the issue.
- Also, updated the Connect Function to depend on our Lti1Binding as it was accidentally dependent on LtiLibrary nuget which should be a hidden dependency of our binding.
@adbindal adbindal merged commit 3c2812e into master Jul 7, 2020
@adbindal adbindal deleted the feature/abindal/functional-lti1 branch July 7, 2020 21:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant