You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2026/10/03 17:14:02 UTC

(couchdb) branch main updated: Fix proxy config default

This is an automated email from the ASF dual-hosted git repository.

nickva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 42de08d2c Fix proxy config default
42de08d2c is described below

commit 42de08d2c197eb4618a634253ab19429ded81453
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Sat Oct 3 02:08:29 2026 -0400

    Fix proxy config default
    
    Use nil as a better value when users use proxy auth.
    
    Co-Authored-By: Ronny Berndt <ro...@apache.org>
---
 src/couch/src/couch_httpd_auth.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/src/couch_httpd_auth.erl b/src/couch/src/couch_httpd_auth.erl
index f9c35f145..9c5136402 100644
--- a/src/couch/src/couch_httpd_auth.erl
+++ b/src/couch/src/couch_httpd_auth.erl
@@ -208,7 +208,7 @@ proxy_auth_user(Req) ->
                 true ->
                     case chttpd_util:get_chttpd_auth_config("secret") of
                         undefined ->
-                            Req#httpd{user_ctx = #user_ctx{name = ?l2b(UserName), roles = Roles}};
+                            nil;
                         _Secret ->
                             Token =
                                 try