diff options
author | Joan Touzet <joant@atypical.net> | 2017-07-08 01:28:39 -0400 |
---|---|---|
committer | Joan Touzet <wohali@users.noreply.github.com> | 2017-07-09 18:06:00 -0400 |
commit | 34b803a35531f305e05080c35c3e9af9e3b9dbf2 (patch) | |
tree | 8ef25bac1891c68449ec156b07d885516ceb63e1 /src/couch/include | |
parent | 017d76ff5b1b72e97699b957cc05a3fcce98d6c0 (diff) | |
download | couchdb-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.hrl | 18 |
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); - } - } - } - } -">>). |