You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/06 18:39:54 UTC

[12/50] [abbrv] couch commit: updated refs/heads/import-rcouch to e2dbc79

Rename proxy_authentification_handler to proxy_authentication_handler

All our other handlers follow the *_authentication_handler form and
various bits of documentation imply they all do.

The old form will continue to work, though it's marked as deprecated,
and will be removed in a future release.

Thanks to Stepan Stolyarov <st...@gmail.com> for the
original patch.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/53c32b28
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/53c32b28
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/53c32b28

Branch: refs/heads/import-rcouch
Commit: 53c32b283149bb3eef95dd6d799496803b306bb6
Parents: 60ba713
Author: Robert Newson <rn...@apache.org>
Authored: Thu Nov 7 11:32:10 2013 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Nov 7 11:32:10 2013 +0000

----------------------------------------------------------------------
 couch_httpd_auth.erl | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/53c32b28/couch_httpd_auth.erl
----------------------------------------------------------------------
diff --git a/couch_httpd_auth.erl b/couch_httpd_auth.erl
index a967e09..b8c4e26 100644
--- a/couch_httpd_auth.erl
+++ b/couch_httpd_auth.erl
@@ -16,7 +16,7 @@
 -export([default_authentication_handler/1,special_test_authentication_handler/1]).
 -export([cookie_authentication_handler/1]).
 -export([null_authentication_handler/1]).
--export([proxy_authentification_handler/1]).
+-export([proxy_authentication_handler/1, proxy_authentification_handler/1]).
 -export([cookie_auth_header/2]).
 -export([handle_session_req/1]).
 
@@ -111,11 +111,15 @@ null_authentication_handler(Req) ->
 %   ecret key is the secret key in couch_httpd_auth section of ini. This token is optional
 %   if value of proxy_use_secret key in couch_httpd_auth section of ini isn't true.
 %
-proxy_authentification_handler(Req) ->
+proxy_authentication_handler(Req) ->
     case proxy_auth_user(Req) of
         nil -> Req;
         Req2 -> Req2
     end.
+
+%% @deprecated
+proxy_authentification_handler(Req) ->
+    proxy_authentication_handler(Req).
     
 proxy_auth_user(Req) ->
     XHeaderUserName = couch_config:get("couch_httpd_auth", "x_auth_username",