# File lib/oauth/client/action_controller_request.rb, line 44 def apply_oauth! return unless ActionController::TestRequest.use_oauth? && @oauth_options @oauth_helper = OAuth::Client::Helper.new(self, @oauth_options.merge(:request_uri => (respond_to?(:fullpath) ? fullpath : request_uri))) @oauth_helper.amend_user_agent_header(env) self.send("set_oauth_#{@oauth_options[:scheme]}") end
# File lib/oauth/client/action_controller_request.rb, line 35 def configure_oauth(consumer = nil, token = nil, options = {}) @oauth_options = { :consumer => consumer, :token => token, :scheme => 'header', :signature_method => nil, :nonce => nil, :timestamp => nil }.merge(options) end
# File lib/oauth/client/action_controller_request.rb, line 53 def set_oauth_header env['Authorization'] = @oauth_helper.header end
Generated with the Darkfish Rdoc Generator 2.