lib/restforce/middleware/authentication/token.rb
module Restforce # Authentication middleware used if oauth_token and refresh_token are set class Middleware::Authentication::Token < Restforce::Middleware::Authentication def params { :grant_type => 'refresh_token', :refresh_token => @options[:refresh_token], :client_id => @options[:client_id], :client_secret => @options[:client_secret] } end end end