# File lib/oauth/client/action_controller_request.rb, line 33 33: def apply_oauth! 34: return unless ActionController::TestRequest.use_oauth? && @oauth_options 35: 36: @oauth_helper = OAuth::Client::Helper.new(self, @oauth_options.merge(:request_uri => request_uri)) 37: @oauth_helper.amend_user_agent_header(env) 38: 39: self.send("set_oauth_#{@oauth_options[:scheme]}") 40: end
# File lib/oauth/client/action_controller_request.rb, line 24 24: def configure_oauth(consumer = nil, token = nil, options = {}) 25: @oauth_options = { :consumer => consumer, 26: :token => token, 27: :scheme => 'header', 28: :signature_method => nil, 29: :nonce => nil, 30: :timestamp => nil }.merge(options) 31: end
# File lib/oauth/client/action_controller_request.rb, line 42 42: def set_oauth_header 43: env['Authorization'] = @oauth_helper.header 44: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.