couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [12/50] [abbrv] couch commit: updated refs/heads/import-rcouch to e2dbc79
Date Thu, 06 Feb 2014 17:39:54 GMT
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 <stepan.stolyarov@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 <rnewson@apache.org>
Authored: Thu Nov 7 11:32:10 2013 +0000
Committer: Robert Newson <rnewson@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",


Mime
View raw message