Github user rnewson commented on a diff in the pull request:
https://github.com/apache/couchdb-couch/pull/81#discussion_r36728326
--- Diff: src/couch_httpd.erl ---
@@ -161,8 +161,15 @@ set_auth_handlers() ->
AuthenticationSrcs = make_fun_spec_strs(
config:get("httpd", "authentication_handlers", "")),
AuthHandlers = lists:map(
- fun(A) -> {make_arity_1_fun(A), ?l2b(A)} end, AuthenticationSrcs),
- ok = application:set_env(couch, auth_handlers, AuthHandlers).
+ fun(A) -> {auth_handler_name(A), make_arity_1_fun(A)} end,
AuthenticationSrcs),
+ AuthenticationFuns = AuthHandlers ++ [
+ {<<"local">>, fun couch_httpd_auth:local_admin_handler/1} %%
should be last
+ ],
+ ok = application:set_env(couch, auth_handlers, AuthenticationFuns).
--- End diff --
ah, but I guess is predates your work. See my comment on the name. summary:
party_mode_handler would be more descriptive (and suitably scary)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---