OAuth2 for Student Accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So for context I’m a student and I’m building an application which allows users to receive reminders and view their own course information. I don’t have access to any kind of admin account and for OAuth2 I need a client_id and client_secret which are can only be created by admins on Canvas. Additionally, from my understanding, the client_id and client_secret are institution specific which makes this even more unfeasible for me.
It really seems like the only way I could get my application to work the way I want is to use API keys, but doing so is inconvenient for the end user and also against Canvas’ API policy.
Anyone have any idea on what I should do?
Some related posts:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Jsinco,
If you're trying to make an app for people other than yourself to use, I do believe OAuth2 is the correct route to take if you need to use API calls as other users. As you outlined though, it's not really a flip of a switch to get that to work for all Canvas instances. You would need the admins of each institution (like myself) to create a developer key for their instance and provide it to you. On the school/institution side this will usually involve at least a security audit of your app and possibly some other agreements. This is because you could get access to a lot of data via the API, though sometimes scoping the key can help minimize the risk.
Instructure does have something called an "inherited key" where one key/secret would work for all Canvas instances what enable the particular key. That may simplify coding on your end, but you'd likely face the same review steps for that key to be enabled and I am pretty sure you'd have to pay to become an official Instructure partner to have that option.
Hope this helps a bit. Others may chime in with their opinions or perhaps some options I don't know about as well.
-Chris