summaryrefslogtreecommitdiff
path: root/src/erlang-oauth/oauth_plaintext.erl
blob: d8085e02d35664f1f1d34a8f54e6f7abb663ddc4 (plain)
1
2
3
4
5
6
7
8
9
10
-module(oauth_plaintext).

-export([signature/2, verify/3]).


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

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