Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.759 kB
require 'oauth'
require 'oauth/signature/hmac/sha1'
require 'oauth/request_proxy/rack_request'
require 'oauth/server'
require 'oauth/controllers/application_controller_methods'
if Rails.version =~ /^3\./
require 'oauth/request_proxy/rack_request'
else
require 'oauth/request_proxy/action_controller_request'
ActionController::Base.send :include, OAuth::Controllers::ApplicationControllerMethods
end
module OAuth
module Plugin
class OAuthRailtie < Rails::Railtie
initializer "oauth-plugin.configure_rails_initialization" do |app|
app.middleware.insert_before ActionDispatch::Cookies, OAuth::Rack::OAuthFilter
ActionController::Base.send :include, OAuth::Controllers::ApplicationControllerMethods
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.