Created
January 5, 2017 17:07
-
-
Save anonymous/bff23ec8ac0bd4f1100b70ddeffead1d to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ request_token_base_string = 'POST&' + CGI.escape("#{Pazienti2::Application::BLOG_URL}oauth1/request?" + request_token_url.query) hmac = OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new('sha1'), params[:oauth_consumer_secret].encode("ASCII") + '&' + '', request_token_base_string.encode("ASCII")) signature = Base64.encode64(hmac).chomp request_token_params[:oauth_signature] = signature