Skip to content

[LOG_AUTHENTICATED_USER] missing name when logout #10409

Description

@albundy83

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

Hello,

sine the new feature to log authenticated user has been done here, it seems that when you logout, username is not displayed in log.

Here an example with logout from oauth2:

1.2.3.4 - - [11/Sep/2026:06:37:07 +0000] "GET /oauth2/logout?next=/browser/ HTTP/1.1" 302 6269 "https://pgadmin4.youpi.fr/browser/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36"

Here an example with "classical" logout:

1.2.3.4 - - [11/Sep/2026:06:34:21 +0000] "GET /logout?next=/browser/ HTTP/1.1" 302 205 "https://pgadmin4.youpi.fr/browser/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36"

To Reproduce
Deploy pgadmin4 and enable LOG_AUTHENTICATED_USER, click on Logout button.

Expected behavior

Add missing username in log:

1.2.3.4 - me@youpi.fr [11/Sep/2026:06:34:21 +0000] "GET /logout?next=/browser/ HTTP/1.1" 302 205 "https://pgadmin4.youpi.fr/browser/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36"

Desktop (please complete the following information):

  • OS: Kubernetes 1.34.8
  • pgAdmin version: 9.17
  • Mode: Server
  • Browser (if running in server mode): Chrome/152.0.0.0
  • Package type: Container

Thanks a lot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions