mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 20:13:43 +08:00
1ba9b34b03
This has no functional impact yet, but it is the first step in adding more granular scopes to UserApiKeys
11 lines
263 B
Ruby
11 lines
263 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:user_api_key_scope)
|
|
|
|
Fabricator(:readonly_user_api_key, from: :user_api_key) do
|
|
user
|
|
scopes { [Fabricate.build(:user_api_key_scope, name: 'read')] }
|
|
client_id { SecureRandom.hex }
|
|
application_name 'some app'
|
|
end
|