mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow user api key revocation for read only keys
This commit is contained in:
9
spec/fabricators/user_api_key_fabricator.rb
Normal file
9
spec/fabricators/user_api_key_fabricator.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
Fabricator(:readonly_user_api_key, from: :user_api_key) do
|
||||
user
|
||||
read true
|
||||
write false
|
||||
push false
|
||||
client_id { SecureRandom.hex }
|
||||
key { SecureRandom.hex }
|
||||
application_name 'some app'
|
||||
end
|
||||
Reference in New Issue
Block a user