Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
RSA-SHA1 keys are the consumer secret.
  • Loading branch information
Tim Fletcher committed Feb 25, 2009
1 parent e015b41 commit e0b0577ce12ad6735849373c1b4bf04a27858979
Showing 1 changed file with 3 additions and 3 deletions.
@@ -40,9 +40,9 @@ signature(HttpMethod, URL, Params, Consumer, TokenSecret) ->
hmac_sha1 ->
BaseString = signature_base_string(HttpMethod, URL, Params),
oauth_hmac_sha1:signature(BaseString, consumer_secret(Consumer), TokenSecret);
{rsa_sha1, PrivateKey} ->
rsa_sha1 ->
BaseString = signature_base_string(HttpMethod, URL, Params),
oauth_rsa_sha1:signature(BaseString, PrivateKey)
oauth_rsa_sha1:signature(BaseString, consumer_secret(Consumer))
end.

signature_base_string(HttpMethod, URL, Params) ->
@@ -74,7 +74,7 @@ signature_method_string(Consumer) ->
"PLAINTEXT";
hmac_sha1 ->
"HMAC-SHA1";
{rsa_sha1, _} ->
rsa_sha1 ->
"RSA-SHA1"
end.

0 comments on commit e0b0577

Please sign in to comment.