简体   繁体   中英

What are the possible values for scope in Canvas LMS?

I have to pass scope in oauth2 flow in Canvas LMS but I don't know what are the possible values to pass. I didn't see a complete list anywhere. This is the URL but I don't what to pass in scope. Any help?

http:///login/oauth2/auth?client_id=10000001&response_type=code&redirect_uri= https://my-test-url//home/oauth2response&state=30330943-16da-4371-865f-5512b6ec671f&&scope=value_1 value_2 value_n

The scope you can use depends on the endpoint you are using, as stated in the documentation :

[...] Canvas API scopes may be found beneath their corresponding endpoints in the "resources" documentation pages. [...]

As an example, for creating an assignment , the scopes which are defined are:

  • url:POST|/api/v1/courses/:course_id/assignments

Depending on the developer keys you are using, it might be possible that you don't need a scope parameter during the authentication process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM