lib/facemock/oauth/authentication.rb in facemock-oauth-0.0.4 vs lib/facemock/oauth/authentication.rb in facemock-oauth-0.0.5

- old
+ new

@@ -1,9 +1,13 @@ require 'facemock' module Facemock module OAuth class Authentication < RackMiddleware + class << self + attr_accessor :path + end + DEFAULT_PATH = "/facemock/oauth" @path = DEFAULT_PATH def call(env) if env["PATH_INFO"] == Authentication.path && env["REQUEST_METHOD"] == "POST"