Sha256: de1148ef5a33861ad0f9f91d9803f029d85ca08b704e6f916bb4ab952ac24b1f
Contents?: true
Size: 890 Bytes
Versions: 25
Compression:
Stored size: 890 Bytes
Contents
require 'oauth/request_proxy/base' require 'uri' require 'rack' module OAuth::RequestProxy class RackRequest < OAuth::RequestProxy::Base proxies Rack::Request def method request.env["rack.methodoverride.original_method"] || request.request_method end def uri request.url end def parameters if options[:clobber_request] options[:parameters] || {} else params = request_params.merge(query_params).merge(header_params) params.merge(options[:parameters] || {}) end end def signature parameters['oauth_signature'] end protected def query_params request.GET end def request_params if request.content_type and request.content_type.to_s.downcase.start_with?("application/x-www-form-urlencoded") request.POST else {} end end end end
Version data entries
25 entries across 22 versions & 6 rubygems