Create a component <CanvasAPILogin /> in src/components/teacher that will contain the login button for Canvas account and the authentication logic for Canvas
For cleanliness you can also create a CanvasAPI.tsx file in src/utils
Import and display <CanvasAPILogin /> in routes/teacher/ClassSettings.tsx to make sure it works
Backend
Create a Canvas Free-for-Teacher account and send the login credentials in the team Slack (using the Questable Gmail account, login in Slack)
Implement functionality to connect with the Canvas API in CanvasAPILogin />. In general, these are the steps you MIGHT need to take in the authentication process:
Upon click of a "Login" button in <CanvasAPILogin />, send the user to some login portal (to log into Canvas account)
Upon login, redirect the user back to Questable and serve them with an authentication token
Use the authentication token to make authenticated requests to the Canvas API (for various sorts of data)
Canvas API: Login and Authentication
Overview
Create a Canvas testing account (using the Questable Gmail account, login in Slack) and use it to login/authenticate/connect to the Canvas REST API
Resources
Frontend
<CanvasAPILogin />
insrc/components/teacher
that will contain the login button for Canvas account and the authentication logic for CanvasCanvasAPI.tsx
file insrc/utils
<CanvasAPILogin />
inroutes/teacher/ClassSettings.tsx
to make sure it worksBackend
CanvasAPILogin />
. In general, these are the steps you MIGHT need to take in the authentication process:<CanvasAPILogin />
, send the user to some login portal (to log into Canvas account)