A question about OAuth2 request token

66 views
Skip to first unread message

Trương Hoàng Dũng

unread,
Jun 17, 2012, 5:54:41 AM6/17/12
to canvas-l...@googlegroups.com
Hi everybody, i have a question about Oauth access token as described here: https://canvas.instructure.com/doc/api/file.oauth.html

As i understand, the result of the Oauth2 token request flow is an access token, with which we can authenticate to canvas system as a user to request information or post data. But i don't know which information will be available to this user with generated access_token. For example, which information will be returned as result of request: /api/v1/courses?access_token=<access_token>

Thank you very much.

Cody Cutrer

unread,
Jun 18, 2012, 11:08:33 AM6/18/12
to canvas-l...@googlegroups.com
As described in the documentation at
https://canvas.instructure.com/doc/api/courses.html#method.courses.index
it will return the courses that current user (i.e. the user that owns
the access token you are using) is enrolled in. Most other APIs that
don't take an id to be relative to (i.e.
https://canvas.instructure.com/doc/api/accounts.html#method.accounts.courses_api
lists courses in a specified account) work similarly - returning
objects that the current user can read or is participating in.

Cody Cutrer
Software Engineer
Instructure
Reply all
Reply to author
Forward
0 new messages