Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
fd6fbaa4ae73677b122ca109135a4e91738a984d
discourse/spec/fabricators/user_api_key_fabricator.rb

10 lines
209 B
Ruby
Raw Normal View History

DEV: use #frozen_string_literal: true on all spec This change both speeds up specs (less strings to allocate) and helps catch cases where methods in Discourse are mutating inputs. Overall we will be migrating everything to use #frozen_string_literal: true it will take a while, but this is the first and safest move in this direction
2019-04-30 10:27:42 +10:00
# frozen_string_literal: true
FEATURE: allow user api key revocation for read only keys
2016-09-02 16:57:41 +10:00
Fabricator(:readonly_user_api_key, from: :user_api_key) do
user
FEATURE: user API now contains scopes so permission is granular previously we supported blanket read and write for user API, this change amends it so we can define more limited scopes. A scope only covers a few routes. You can not grant access to part of the site and leave a large amount of the information hidden to API consumer.
2016-10-14 16:05:27 +11:00
scopes ['read']
FEATURE: allow user api key revocation for read only keys
2016-09-02 16:57:41 +10:00
client_id { SecureRandom.hex }
key { SecureRandom.hex }
application_name 'some app'
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 260ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API