X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b6b9d543acd0dfc39f69242e82c60d5a25021f79..6c2093b29d74b145b85e61c4fff09b5f13afa0e5:/app/models/client_application.rb diff --git a/app/models/client_application.rb b/app/models/client_application.rb index 67b86417a..1d5922d8e 100644 --- a/app/models/client_application.rb +++ b/app/models/client_application.rb @@ -57,6 +57,7 @@ class ClientApplication < ActiveRecord::Base def self.verify_request(request, options = {}, &block) signature = OAuth::Signature.build(request, options, &block) return false unless OauthNonce.remember(signature.request.nonce, signature.request.timestamp) + value = signature.verify value rescue OAuth::Signature::UnknownSignatureMethod @@ -68,11 +69,11 @@ class ClientApplication < ActiveRecord::Base end def oauth_server - @oauth_server ||= OAuth::Server.new("http://" + SERVER_URL) + @oauth_server ||= OAuth::Server.new("https://" + SERVER_URL) end def credentials - @oauth_client ||= OAuth::Consumer.new(key, secret) + @credentials ||= OAuth::Consumer.new(key, secret) end def create_request_token(_params = {})