Skip to content

Commit

Permalink
mod_oauth: do not assume GET
Browse files Browse the repository at this point in the history
(cherry picked from commit 13f682d)
  • Loading branch information
Arjan Scherpenisse committed Feb 16, 2012
1 parent 6efdda2 commit 1df8c22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/mod_oauth/mod_oauth.erl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ check_request_logon(ReqData, Context) ->
{false, authenticate(Reason, ReqData, Context)};
true ->
SigMethod = oauth_param("oauth_signature_method", ReqData),
case oauth:verify(Signature, "GET", URL, Params, to_oauth_consumer(Consumer, SigMethod), str_value(token_secret, Token)) of
case oauth:verify(Signature, atom_to_list(ReqData#wm_reqdata.method), URL,
Params, to_oauth_consumer(Consumer, SigMethod), str_value(token_secret, Token)) of
true ->
UID = int_value(user_id, Token),
Context1 = z_acl:logon(UID, Context),
Expand Down

0 comments on commit 1df8c22

Please sign in to comment.