Merge pull request 'OAuth: require security scopes for /api/oauth_tokens' (#8013) from lambadalambda/pleroma:fix/oauth-tokens-scopes into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/8013
This commit is contained in:
lain 2026-10-27 07:08:34 +00:00
commit 745926189f
4 changed files with 50 additions and 22 deletions

View file

@ -780,6 +780,7 @@ Emoji reactions work a lot like favourites do. They make it possible to react to
### Retrieve a list of active sessions for the user
* Method: `GET`
* Authentication: required
* OAuth scope: `read:security`
* Params: none
* Response: JSON
* Example response:
@ -808,8 +809,9 @@ Emoji reactions work a lot like favourites do. They make it possible to react to
### Revoke a user session by its ID
* Method: `DELETE`
* Authentication: required
* OAuth scope: `write:security`
* Params: none
* Response: HTTP 200 on success, 500 on error
* Response: HTTP 201 on success, 500 on error
## `/api/v1/pleroma/settings/:app`
### Gets settings for some application