feat(oauth): support the profile scope

A token with only the profile scope can call verify_credentials, as in
Mastodon 4.3. The answer is the public account, so apps can use it to
log users in without seeing their email or settings.
This commit is contained in:
Lain Soykaf 2026-10-26 12:26:07 +04:00
commit 530ae4b339
No known key found for this signature in database
7 changed files with 90 additions and 4 deletions

View file

@ -33,6 +33,11 @@ msgstr "Write all using admin API"
msgid "follow"
msgstr "Read and write user relationships"
#, elixir-autogen, elixir-format
#: lib/pleroma/web/api_spec/scopes/translator.ex:5
msgid "profile"
msgstr "Read only your public profile, to log in to other services"
#, elixir-autogen, elixir-format
#: lib/pleroma/web/api_spec/scopes/translator.ex:5
msgid "push"

View file

@ -220,6 +220,11 @@ msgstr ""
msgid "read:mutes"
msgstr ""
#: lib/pleroma/web/api_spec/scopes/translator.ex:5
#, elixir-autogen, elixir-format
msgid "profile"
msgstr ""
#: lib/pleroma/web/api_spec/scopes/translator.ex:5
#, elixir-autogen, elixir-format
msgid "push"