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 OAUTH2_SCOPES = %w[openid].freeze
14 I18n.t("oauth.scopes.#{name}")
18 def self.scopes(oauth2: false, privileged: false)
20 scopes += PRIVILEGED_SCOPES if privileged
21 scopes += OAUTH2_SCOPES if oauth2
22 scopes.collect { |s| Scope.new(s) }