tl-its-umich-edu / canvas-app-explorer

A Web application that presents a list of Canvas external (LTI) tools with details. When integrated within Canvas, the user can search for specific LTI tool(s), and add or remove those tools from Canvas courses.
Apache License 2.0
4 stars 6 forks source link

Add specific scopes needed for API key #202

Closed jonespm closed 2 years ago

jonespm commented 2 years ago

Currently the API key is defined with no scope enforcement. We could lock it down to only the specific scopes needed. I don't think these will change, at least not for this release so we can do this now.

Currently these are set with the setting: CANVAS_OAUTH_SCOPES: []


To test:

jonespm commented 2 years ago

We'd talked about making these configurable incase Canvas changes them.

The scopes we are currently using are

Course:

GET /api/v1/courses/:id

Tabs:

GET /api/v1/courses/:course_id/tabs
PUT /api/v1/courses/:course_id/tabs/:tab_id

In a future releases we'll likely need these, but can wait.

External Tools:

GET /api/v1/accounts/:account_id/external_tools
GET /api/v1/accounts/:course_id/external_tools/sessionless_launch
zqian commented 2 years ago

Verified on test server: