Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Fix suspected bug in PLAINTEXT signature.
This JavaScript implementation: appears to
indicate that the signature only needs to be encoded once, not twice.
This makes erlang-oauth comply, assuming it is passed an already-decoded
signature to verify (which is usual when using something like Mochiweb,
for example).

Signed-off-by: Tim Fletcher <>
  • Loading branch information
Jason Davies authored and Tim Fletcher committed Jul 19, 2009
1 parent 5d93e6b commit 562597602b054f8e2412ff54d7957839aa88c2c5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -4,7 +4,7 @@

signature(CS, TS) ->
oauth_uri:encode(oauth_uri:calate("&", [CS, TS])).
oauth_uri:calate("&", [CS, TS]).

verify(Signature, CS, TS) ->
Signature =:= signature(CS, TS).

0 comments on commit 5625976

Please sign in to comment.