summaryrefslogtreecommitdiff
path: root/src/chttpd_oauth.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-14 15:33:16 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:50 -0400
commit9f4b3e86b174749408811416544b464cb78d6755 (patch)
treee4606bb41892f0cf74c3d171a06d64bb80b6419e /src/chttpd_oauth.erl
parent06c0046f8225df82e38120c7bd487479ac3d726a (diff)
oops, referenced the wrong config setting for auth db
Diffstat (limited to 'src/chttpd_oauth.erl')
-rw-r--r--src/chttpd_oauth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd_oauth.erl b/src/chttpd_oauth.erl
index 70995409..84506efe 100644
--- a/src/chttpd_oauth.erl
+++ b/src/chttpd_oauth.erl
@@ -30,7 +30,7 @@ oauth_authentication_handler(#httpd{mochi_req=MochiReq}=Req) ->
% Look up the consumer key and get the roles to give the consumer
set_user_ctx(Req, AccessToken) ->
- DbName = couch_config:get("chttpd_auth", "authentication_db"),
+ DbName = couch_config:get("couch_httpd_auth", "authentication_db", "users"),
ok = chttpd_auth:ensure_users_db_exists(?l2b(DbName)),
Name = ?l2b(couch_config:get("oauth_token_users", AccessToken)),
case chttpd_auth:get_user(Name) of