summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJason David Davies <jasondavies@apache.org>2009-10-12 09:02:48 +0000
committerJason David Davies <jasondavies@apache.org>2009-10-12 09:02:48 +0000
commitd1a745685f3a86b043fe9fd26b9851f167b9ec1e (patch)
tree10edbe540d04519c7655a3e38acc1e51bdaeaf91 /src/couchdb
parentf5ec001fc4a538181492b0d61931708f6ac9a28d (diff)
Added handy log message for debugging OAuth behind proxies.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824268 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd_oauth.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_oauth.erl b/src/couchdb/couch_httpd_oauth.erl
index c1a51413..a9127674 100644
--- a/src/couchdb/couch_httpd_oauth.erl
+++ b/src/couchdb/couch_httpd_oauth.erl
@@ -20,6 +20,7 @@ oauth_authentication_handler(#httpd{mochi_req=MochiReq}=Req) ->
serve_oauth(Req, fun(URL, Params, Consumer, Signature) ->
AccessToken = proplists:get_value("oauth_token", Params),
TokenSecret = couch_config:get("oauth_token_secrets", AccessToken),
+ ?LOG_DEBUG("OAuth URL is: ~p", [URL]),
case oauth:verify(Signature, atom_to_list(MochiReq:get(method)), URL, Params, Consumer, TokenSecret) of
true ->
set_user_ctx(Req, AccessToken);