mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Clarify scope
parameter of oauth token creation (#1509)
* Clarify `scope` parameter of oauth token creation * Improve wording Co-authored-by: Claire <claire.github-309c@sitedethib.com> --------- Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
1d43a44b22
commit
495285ba35
@ -108,7 +108,7 @@ redirect_uri
|
||||
: {{<required>}} String. Set a URI to redirect the user to. If this parameter is set to urn:ietf:wg:oauth:2.0:oob then the token will be shown instead. Must match one of the `redirect_uris` declared during app registration.
|
||||
|
||||
scope
|
||||
: String. List of requested OAuth scopes, separated by spaces (or by pluses, if using query parameters). If `code` was provided, then this must be equal to the `scope` requested from the user. Otherwise, it must be a subset of `scopes` declared during app registration. If not provided, defaults to `read`.
|
||||
: String. When `grant_type` is set to `client_credentials`, the list of requested OAuth scopes, separated by spaces (or pluses, if using query parameters). Must be a subset of the scopes requested at the time the application was created. If omitted, it defaults to `read`. Has no effect when `grant_type` is `authorization_code`.
|
||||
|
||||
#### Response
|
||||
##### 200: OK
|
||||
@ -203,4 +203,4 @@ If you provide a token you do not own, or no token at all, the API call will ret
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/oauth/authorized_applications_controller.rb" caption="app/controllers/oauth/authorized_applications_controller.rb" >}}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/oauth/tokens_controller.rb" caption="app/controllers/oauth/tokens_controller.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/oauth/tokens_controller.rb" caption="app/controllers/oauth/tokens_controller.rb" >}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user