spec/support/helpers/url_helper.rb in doorkeeper-4.3.0 vs spec/support/helpers/url_helper.rb in doorkeeper-4.3.1
- old
+ new
@@ -15,9 +15,10 @@
code: options[:code],
client_id: options[:client_id] || (options[:client] ? options[:client].uid : nil),
client_secret: options[:client_secret] || (options[:client] ? options[:client].secret : nil),
username: options[:resource_owner_username] || (options[:resource_owner] ? options[:resource_owner].name : nil),
password: options[:resource_owner_password] || (options[:resource_owner] ? options[:resource_owner].password : nil),
+ scope: options[:scope],
grant_type: 'password'
}
"/oauth/token?#{build_query(parameters)}"
end