You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Someone shared a hack that works around the problem:
--- a/WebContent/WEB-INF/gems/gems/oauth-0.4.4/lib/oauth/signature/hmac/base.rb
+++ b/WebContent/WEB-INF/gems/gems/oauth-0.4.4/lib/oauth/signature/hmac/base.rb
@@ -2,6 +2,7 @@
require 'oauth/signature/base'
require 'digest/hmac'
+require 'openssl'
module OAuth::Signature::HMAC
class Base < OAuth::Signature::Base
@@ -9,7 +10,8 @@ module OAuth::Signature::HMAC
private
def digest
self.class.digest_class Object.module_eval("::Digest::#{self.class.digest_klass}")
- Digest::HMAC.digest(signature_base_string, secret, self.class.digest_class)
+ digest = OpenSSL::Digest::Digest.new('sha1')
+ OpenSSL::HMAC.digest(digest, secret, signature_base_string)
end
end
end
The text was updated successfully, but these errors were encountered:
0.4.4 gem does not work with jruby (v.1.5.6.) It works fine with ruby MRI.
Stack trace:
Someone shared a hack that works around the problem:
--- a/WebContent/WEB-INF/gems/gems/oauth-0.4.4/lib/oauth/signature/hmac/base.rb
+++ b/WebContent/WEB-INF/gems/gems/oauth-0.4.4/lib/oauth/signature/hmac/base.rb
@@ -2,6 +2,7 @@
The text was updated successfully, but these errors were encountered: