[LTI Provider] Fix bug preventing unenrolled users from accessing content - #8426
Conversation
|
Thanks for the pull request, @mcgachey! I've created OSPR-635 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the Github pull request interface. As a reminder, our process documentation is here. |
|
Pinging @ormsbee and @nasthagiri |
There was a problem hiding this comment.
To make sure we don't break LTI for unenrolled students again, can you:
- rename this test to
test_unenrolled_student(both here and inRenderXBlockTestMixin) - update the implementation of this test to verify that an LTI unenrolled student can successfully access the endpoint. Something like:
self.setup_course()
self.setup_user(admin=False, enroll=False, login=True)
self.verify_response()
Thanks.
…tent Change https://github.com/edx/edx-platform/pull/8240 refactored the LTI provider template rendering code and introduced an issue where a user was required to be enrolled in a course before that course's content could be accessed over LTI. According to the LTI design spec: https://docs.google.com/document/d/185hdPvIxcKtiDOLjb4sTGovA_WYXWz5Cd79gCzQwBms we delegate access control over LTI content to the LTI consumer, rather than requiring that users enroll in edX courses explicitly (and that admins keep edX and LTI provider enrollemnts consistent when students add or drop courses). This change fixes the immediate issue, which is disrupting the LTI Provider pilot currently running at Harvard.
1975037 to
0c7623d
Compare
|
👍 This is Ok for a short-term workaround to unblock further LTI work. |
|
👍 |
|
test this please |
|
Are we good to go on this change? |
[LTI Provider] Fix bug preventing unenrolled users from accessing content
Change https://github.com/edx/edx-platform/pull/8240 refactored the LTI
provider template rendering code and introduced an issue where a user was
required to be enrolled in a course before that course's content could be
accessed over LTI. According to the LTI design spec:
https://docs.google.com/document/d/185hdPvIxcKtiDOLjb4sTGovA_WYXWz5Cd79gCzQwBms
we delegate access control over LTI content to the LTI consumer, rather
than requiring that users enroll in edX courses explicitly (and that admins
keep edX and LTI provider enrollments consistent when students add or drop
courses).
This change fixes the immediate issue, which is disrupting the LTI Provider
pilot currently running at Harvard.