Sha256: 247d8d44bad8ac51fdd89e766a329efbf94f6cd071d66e96807c380d2ae458f5
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
class AuthlogicConnect::CallbackFilter def initialize(app) @app = app end def call(env) if env["rack.session"].nil? raise "Make sure you are setting the session in Rack too! Place this in config/application.rb" end unless env["rack.session"][:oauth_callback_method].blank? env["REQUEST_METHOD"] = env["rack.session"].delete(:oauth_callback_method).to_s.upcase end @app.call(env) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authlogic-connect-0.0.3.2 | lib/authlogic_connect/callback_filter.rb |
authlogic-connect-0.0.2 | lib/authlogic_connect/callback_filter.rb |