Skip to content

Commit

Permalink
Store the Name and Roles service URL in LMSCourse
Browse files Browse the repository at this point in the history
This will allow us to comunicate with the service outside the launch
context.

See: https://www.imsglobal.org/spec/lti-nrps/v2p0#lti-1-3-integration
  • Loading branch information
marcospri committed Aug 26, 2024
1 parent 6c7dfb5 commit 44e8c52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lms/models/lms_course.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class LMSCourse(CreatedUpdatedMixin, Base):

name: Mapped[str] = mapped_column(index=True)

lti_context_memberships_url: Mapped[str | None] = mapped_column()
"""URL for the Names and Roles endpoint, stored during launch to use it outside the launch context."""


class LMSCourseApplicationInstance(CreatedUpdatedMixin, Base):
"""Record of on which installs (application instances) we have seen one course."""
Expand Down

0 comments on commit 44e8c52

Please sign in to comment.