2 SCOPES = %w[read_prefs write_prefs write_diary write_api read_gpx write_gpx write_notes].freeze
3 PRIVILEGED_SCOPES = %w[read_email skip_authorization].freeze
4 MODERATOR_SCOPES = %w[write_redactions].freeze
5 OAUTH2_SCOPES = %w[write_redactions openid].freeze
15 I18n.t("oauth.scopes.#{name}")
19 def self.scopes(oauth2: false, privileged: false)
21 scopes += PRIVILEGED_SCOPES if privileged
22 scopes += OAUTH2_SCOPES if oauth2
23 scopes.collect { |s| Scope.new(s) }