Commit 28bb5236 authored by Eugen Rochko's avatar Eugen Rochko

Update content/en/api/authentication.md

parent 2975a566
Pipeline #548 passed with stages
in 17 seconds
...@@ -44,4 +44,5 @@ Once you have the access token, add the HTTP header `Authorization: Bearer ...` ...@@ -44,4 +44,5 @@ Once you have the access token, add the HTTP header `Authorization: Bearer ...`
## Common gotchas ## Common gotchas
- The OAuth param name is `scope`, but when registering the application using Mastodon's REST API, the param name is `scopes`. The OAuth param can be a subset of the scopes you registered initially, but cannot include anything that wasn't in the original set. - The OAuth param name is `scope`, but when registering the application using Mastodon's REST API, the param name is `scopes`. The OAuth param can be a subset of the scopes you registered initially, but cannot include anything that wasn't in the original set.
- The `redirect_uri` must always be the same, between the registered application and all subsequent OAuth requests. - The OAuth param name is `redirect_uri`, but when registering the application using Mastodon's REST API, the param name is `redirect_uris`. The latter can actually consist of multiple allowed URIs, separated by newlines.
\ No newline at end of file - The `redirect_uri` in all OAuth requests must either be the same as the one registered with the application, or one of them, if you registered multiple URIs separated by newlines with the application.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment