Sign up
hypothesis
/
lms
Public
New issue
Jump to bottom
Enable use of privately shared files in Google Workspace in LMS assignments #928
Open
3 tasks

klemay opened this issue on Aug 21, 2019 · 1 comment
Open
3 tasks
klemay opened this issue on Aug 21, 2019
Labels
Google Drive
Spike
klemay commented on Aug 21, 2019

edited by chrisshaw
/todo Write reqs
⚠️ 👇 ARCHIVE 👇⚠️
This is to confirm the plan outlined below will work, and hopefully scope the work involved.
User story
As a teacher at Example University, I want to use the Hypothesis LMS app in Sakai to assign readings to my students. The PDFs for these readings reside in a Team Drive, and the university library mandates that these PDFs are set so that "anyone at Example University with the link can view," rather than "anyone with the link can view."
When I launch the Google picker I need to:
Additional information
In #632 we explored possible implementations. Robert came up with:
Make Google Drive files work similar to Canvas files, serving PDFs in some way other than serving the download URL.
A sketch of the changes this would involve:
Enabled shared drive support (as outlined here)
Change the Google Drive assignment selection flow so that it records the file ID and the fact that it came from Google Drive in the LTI launch URL, but doesn't make the file publicly accessible. In other words, it would generate an LTI launch URL similar to the one it generates for Canvas files.
Change the assignment launch flow for Google Drive files so that instead of directly rendering a PDF in Via, it instead:
Gets the user's authorization to access their files in Google Drive
Fetches the file content
Serves the file content inside PDF.js, eg. using a blob URL or by passing a data buffer directly to PDF.js
This would involve changes to the BasicLtiLaunchApp mini-SPA in the client and we'd also need to either give Via the ability to load content from a file buffer (eg. transferred from the LMS app to Via via postMessage) or add PDF.js directly to the LMS app.
This will allow any file that is shared with the student's Google account, eg. by being shared with "anyone at " to be used as an assignment without needing public sharing.
klemay added the Google Drive label on Aug 21, 2019
klemay changed the title Change Google Drive selection and launch flow to allow institution-only PDFs SPIKE: Change Google Drive selection and launch flow to allow institution-only PDFs on Aug 22, 2019
klemay mentioned this issue on Aug 22, 2019
SPIKE: using Google file picker with institution-only PDFs and Team Drive #632
Closed
2 tasks
jon-betts added the Spike label on Nov 27, 2019
jon-betts changed the title SPIKE: Change Google Drive selection and launch flow to allow institution-only PDFs Can we change Google Drive selection and launch flow to allow institution-only PDFs? on Nov 27, 2019
klemay mentioned this issue on Jan 13, 2020
Investigate Google Picker permissions to see if we can reduce the permissions needed #1333
Open
https://hypothesis.zendesk.com/agent/tickets/9017
chrisshaw changed the title Can we change Google Drive selection and launch flow to allow institution-only PDFs? Enable use of privately shared fields in Google Drive in LMS assignments on Nov 11, 2021
chrisshaw changed the title Enable use of privately shared fields in Google Drive in LMS assignments Enable use of privately shared files in Google Shared Drives in LMS assignments on Nov 11, 2021
chrisshaw mentioned this issue on Nov 11, 2021
Enable use of privately shared fields in Google Drive in LMS assignments hypothesis/product-backlog#1244
Closed
chrisshaw changed the title Enable use of privately shared files in Google Shared Drives in LMS assignments Enable use of privately shared files in Google Workspace in LMS assignments on Nov 11, 2021
Sign up for free
to join this conversation on GitHub. Already have an account? Sign in to comment
Assignees
No one assigned
Labels
Google Drive
Spike
Projects
None yet
Milestone
No milestone
Development
No branches or pull requests
3 participants
© 2022 GitHub, Inc.
Terms
Privacy
Security
Status
Docs
Contact GitHub
Pricing
API
Training
Blog
About
CodeCodeIssuesIssues151Pull requestsPull requests11ActionsActionsProjectsProjectsWikiWikiSecuritySecurityInsightsInsights Code Issues Pull requests Actions Projects Wiki Security Insights