fix(oauth): require security scopes to list and revoke tokens
/api/oauth_tokens skipped the scope check, so a token with any scope could list the user's sessions and revoke them.
This commit is contained in:
parent
9edce3a0a6
commit
c686b701dd
4 changed files with 50 additions and 22 deletions
1
changelog.d/oauth-tokens-scopes.security
Normal file
1
changelog.d/oauth-tokens-scopes.security
Normal file
|
|
@ -0,0 +1 @@
|
|||
Require the read:security and write:security scopes to list and revoke OAuth tokens (HTTP Basic auth no longer works for these endpoints)
|
||||
Loading…
Add table
Add a link
Reference in a new issue