FEATURE: allow user api key revocation for read only keys

This commit is contained in:
Sam
2016-09-02 16:57:41 +10:00
parent df8d24734a
commit be0fd5b4cc
4 changed files with 48 additions and 3 deletions

View 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