Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
Hi
I am developing my own app in order to let students that visit our site to enroll in courses in our account.
When they fill out a form in our site, they will be automatically become users in our account ( if they are not yet so ), and will be automatically be registered for the course they want.
This will be an app in our site.
For now, I am using an access token that I obtained from our account ( I am an admin ).
Do I need to register the app and use OAuth? Since It is our account and the students only fill out a form, I was not sure if I need register it. ( the app is just few pages of code that I wrote in the site ).
Will appreciate the answer
Thanks
Arie
The token you would get via OAuth would just have the permissions of the user. So, unless they are admins they won't be able to enrol themselves in the course. So, if I've understood correctly, you cannot use OAuth for this anyway.
Thank you this is very helpful
So , if my app is only doing the above functionality, I do not need to register my app with Canvas?
No, it does not need to be registered anywhere.
Hi Peter
So yes, it seems as in my case there's no sense in redirecting a student for authentication.
Still, rather than using the 'non expiring' token I generated in the admin to enroll them, is there a way for me to get a freshly generated token when my app calls the API?
No.
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In