summaryrefslogtreecommitdiff
path: root/src/couch/include
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2017-07-08 01:28:39 -0400
committerJoan Touzet <wohali@users.noreply.github.com>2017-07-09 18:06:00 -0400
commit34b803a35531f305e05080c35c3e9af9e3b9dbf2 (patch)
tree8ef25bac1891c68449ec156b07d885516ceb63e1 /src/couch/include
parent017d76ff5b1b72e97699b957cc05a3fcce98d6c0 (diff)
downloadcouchdb-34b803a35531f305e05080c35c3e9af9e3b9dbf2.tar.gz
Remove deprecated OAuth 1.0 implementation
Helps resolve issue #656. Implementation broken since bigcouch merge. Replicator oauth hooks are left in place for future work towards adding cookie-based authentication support.
Diffstat (limited to 'src/couch/include')
-rw-r--r--src/couch/include/couch_js_functions.hrl18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/couch/include/couch_js_functions.hrl b/src/couch/include/couch_js_functions.hrl
index 0ae6427e4..6851718ff 100644
--- a/src/couch/include/couch_js_functions.hrl
+++ b/src/couch/include/couch_js_functions.hrl
@@ -150,21 +150,3 @@
}
}
">>).
-
-
--define(OAUTH_MAP_FUN, <<"
- function(doc) {
- if (doc.type === 'user' && doc.oauth && doc.oauth.consumer_keys) {
- for (var consumer_key in doc.oauth.consumer_keys) {
- for (var token in doc.oauth.tokens) {
- var obj = {
- 'consumer_secret': doc.oauth.consumer_keys[consumer_key],
- 'token_secret': doc.oauth.tokens[token],
- 'username': doc.name
- };
- emit([consumer_key, token], obj);
- }
- }
- }
- }
-">>).