You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2020/04/23 07:42:56 UTC

[couchdb] branch session-info-auth-db created (now 503c087)

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

jaydoane pushed a change to branch session-info-auth-db
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at 503c087  Report the chttpd_auth authentication db in session info

This branch includes the following new commits:

     new 503c087  Report the chttpd_auth authentication db in session info

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Report the chttpd_auth authentication db in session info

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch session-info-auth-db
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 503c08736edce86b81ee670a8598109188b4797a
Author: Jay Doane <ja...@apache.org>
AuthorDate: Thu Apr 23 00:41:48 2020 -0700

    Report the chttpd_auth authentication db in session info
    
    Currently, result of GET `/_session` reports the `authentication_db` of
    the obsolete admin port 5986. This updates it to report the actual db
    used for authentication.
---
 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 5e44503..e6764ea 100644
--- a/src/couch/src/couch_httpd_auth.erl
+++ b/src/couch/src/couch_httpd_auth.erl
@@ -355,7 +355,7 @@ handle_session_req(#httpd{method='GET', user_ctx=UserCtx}=Req, _AuthModule) ->
                     {roles, UserCtx#user_ctx.roles}
                 ]}},
                 {info, {[
-                    {authentication_db, ?l2b(config:get("couch_httpd_auth", "authentication_db"))},
+                    {authentication_db, ?l2b(config:get("chttpd_auth", "authentication_db"))},
                     {authentication_handlers, [
                        N || {N, _Fun} <- Req#httpd.authentication_handlers]}
                 ] ++ maybe_value(authenticated, UserCtx#user_ctx.handler, fun(Handler) ->