From 3a1f041e07c75001cf52cbae1391dcd801c17396 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 5 Jan 2010 18:11:58 +0000 Subject: merge account branch to apache branch git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/account@896158 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd_oauth.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/couchdb/couch_httpd_oauth.erl') diff --git a/src/couchdb/couch_httpd_oauth.erl b/src/couchdb/couch_httpd_oauth.erl index e46ea5bc..ab786162 100644 --- a/src/couchdb/couch_httpd_oauth.erl +++ b/src/couchdb/couch_httpd_oauth.erl @@ -36,8 +36,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("couch_httpd_auth", "authentication_db"), - {ok, _Db} = couch_httpd_auth:ensure_users_db_exists(?l2b(DbName)), + % weird that this is in the config and not a db Name = case couch_config:get("oauth_token_users", AccessToken) of undefined -> throw({bad_request, unknown_oauth_token}); Value -> ?l2b(Value) -- cgit v1.2.3