2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-12-09 12:36:50 -05:00
|
|
|
factory :oauth_access_grant do
|
|
|
|
resource_owner_id { create(:user).id }
|
|
|
|
application
|
|
|
|
token { Doorkeeper::OAuth::Helpers::UniqueToken.generate }
|
2018-09-20 13:02:36 -04:00
|
|
|
expires_in { 2.hours }
|
2016-12-09 12:36:50 -05:00
|
|
|
|
|
|
|
redirect_uri { application.redirect_uri }
|
|
|
|
scopes { application.scopes }
|
|
|
|
end
|
|
|
|
end
|