Created
December 13, 2010 12:20
-
-
Save acrosa/738940 to your computer and use it in GitHub Desktop.
OAuth gem workaround on JRuby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module OAuth::Signature::HMAC | |
class Base < OAuth::Signature::Base | |
private | |
def digest | |
self.class.digest_class Object.module_eval("::Digest::#{self.class.digest_klass}") | |
digest = OpenSSL::Digest::Digest.new('sha1') | |
OpenSSL::HMAC.digest(digest, secret, signature_base_string) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment