[openstreetmap/openstreetmap-website] Add Messages API (PR #4605)

Milan Cvetkovic notifications at github.com
Thu Mar 21 10:32:22 UTC 2024


@milan-cvetkovic commented on this pull request.



> @@ -2,7 +2,7 @@ module Oauth
   SCOPES = %w[read_prefs write_prefs write_diary write_api read_gpx write_gpx write_notes].freeze
   PRIVILEGED_SCOPES = %w[read_email skip_authorization].freeze
   MODERATOR_SCOPES = %w[write_redactions].freeze
-  OAUTH2_SCOPES = %w[write_redactions openid].freeze
+  OAUTH2_SCOPES = %w[write_redactions message_send message_consume openid].freeze

To clarify, I don't mind the names and/or having different set of scopes.
- read message without modifying anything (peek messages)
- mark messages read or unread
- mark messages as deleted
- send messages to other users

It seemed as if the reading messages makes sense together with the ability to mark them as read and deleted, and I named the scope for those ops `message_consume`

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4605#discussion_r1533613973
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4605/review/1951681619 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240321/f213ed5d/attachment-0001.htm>


More information about the rails-dev mailing list