Closed jeremydean closed 5 years ago
Just off a conversation with folks at UPenn. It was stated that UPenn was highly unlikely to approve the use of a dev key that was not scoped.
@klemay I'm wondering if we should add the API endpoints used by the app to the KB (either as its own entry or part of the one on creating dev keys? I get asked about it regularly and it'd be nice to just be able to point somewhere.
@jeremydean since the LTI parameters are documented as part of this repo's wiki, I would say documentation re: Canvas API calls would belong there too (and we could certainly link to that from the KB article you suggested).
I would be happy to write this up if one of the devs could check it for clarity/accuracy, then I could drop a link in the KB article.
I've added a card to the upcoming sprint, which starts on Thursday.
EDIT: We wrote this up: https://github.com/hypothesis/lms/wiki/Canvas-API-Endpoints-Used-by-the-Hypothesis-LMS-App
This will be partly addressed by #500 and #502 in which we'll remove any knowledge from the client-side part of the LMS app about the LMS's file API works.
This issue got a bit messy so I've written a new one to replace it, with the dev details that we'll need to implement this: https://github.com/hypothesis/lms/issues/806
In order to give the LMS app access to PDFs housed in a Canvas course's "files" repository, administrators installing the app must provide a Canvas dev key (sometimes token) when they acquire consumer key/secret for our app. These keys or tokens provide a lot of unnecessary access to a course/student data/etc and so Canvas has recently allowed them to be scoped, for example, to allow use of only specified Canvas APIs.
https://community.canvaslms.com/docs/DOC-14977-4214937573
Right now, our app does not work with a scoped dev key. We had thought originally that simply providing these API endpoints used would be sufficient:
But in fact changes need to be made to the app itself. @robertknight explains more below in response to a request for this feature from University of Texas at Austin. It is not sufficient :