module OpenStreetMap
module ProviderController
def self.prepended(mod)
+ super
mod.singleton_class.prepend(OpenStreetMap::ProviderController::ClassMethods)
end
def oauth1_verify(request, options = {}, &block)
signature = OAuth::Signature.build(request, options, &block)
return false unless OauthNonce.remember(signature.request.nonce, signature.request.timestamp)
+
value = signature.verify
if request.ssl? && !value
http_request = request.dup