Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb-couch/pull/81#discussion_r36313615
  
    --- Diff: src/couch_httpd_auth.erl ---
    @@ -346,10 +346,10 @@ handle_session_req(#httpd{method='GET', 
user_ctx=UserCtx}=Req, _AuthModule) ->
                     ]}},
                     {info, {[
                         {authentication_db, 
?l2b(config:get("couch_httpd_auth", "authentication_db"))},
    -                    {authentication_handlers, [auth_name(H) || H <- 
couch_httpd:make_fun_spec_strs(
    -                            config:get("httpd", 
"authentication_handlers"))]}
    --- End diff --
    
    Well, quite naive one: move these to own micro-plugins (which could be 
still live in this repo) and provide config options to enable/disable these 
handlers directly.
    
    As for filling UserCtx fields, may be just backport that logic from httpd? 
Sounds not harmful for the first sight.


---
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.
---

Reply via email to