X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a219df24ca8e621e8936bb9fc8b75f8f7f1e15da..10999cfc5e6f64f1b6d81ddb4a2f751c694bcbc5:/app/models/client_application.rb diff --git a/app/models/client_application.rb b/app/models/client_application.rb index 4e3dffb99..ee39c294b 100644 --- a/app/models/client_application.rb +++ b/app/models/client_application.rb @@ -56,8 +56,7 @@ class ClientApplication < ApplicationRecord signature = OAuth::Signature.build(request, options, &block) return false unless OauthNonce.remember(signature.request.nonce, signature.request.timestamp) - value = signature.verify - value + signature.verify rescue OAuth::Signature::UnknownSignatureMethod false end @@ -67,7 +66,7 @@ class ClientApplication < ApplicationRecord end def oauth_server - @oauth_server ||= OAuth::Server.new("https://" + Settings.server_url) + @oauth_server ||= OAuth::Server.new("https://#{Settings.server_url}") end def credentials