[GH-ISSUE #2720] Unauthorized to access cloudbeaver after idle session #906

Closed
opened 2026-03-07 20:56:30 +03:00 by kerem · 0 comments
Owner

Originally created by @deepaksinghkhetwal on GitHub (Jun 20, 2024).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2720

Describe the bug
I have configured access to cloudbeaver using reverse proxy(apache web server) adding ldap authentication. I can login to the cloudbeaver successfully. But after some time I am getting below error. I can login to incognito properly though

GQL Error: 401 Unauthorized
GQL Error: 401 Unauthorized
at CustomGraphQLClient.overrideRequest ()
at async NetworkStateService.sessionExpiredInterceptor ()
at async SessionExpireService.sessionExpiredInterceptor ()
at async SessionResource.loader ()
at async SessionResource.loadingTask ()
at async SessionResource.taskWrapper ()
at async Task.task ()

I have to remove cache and can login again

To Reproduce
Steps to reproduce the behavior:

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
On checking logs in the pod,

20-06-2024 07:46:21.211 [qtp182254297-41] ERROR i.c.service.WebServiceBindingBase - Unexpected error during gql request
io.cloudbeaver.DBWebException: User authentication failed:
Authentication parameter 'user' is missing

Below is the header configuration in httpd.conf
RequestHeader add X-User %{AUTHENTICATE_SAMACCOUNTNAME}e
RequestHeader add X-Role user
RequestHeader add X-First-name %{AUTHENTICATE_GIVENNAME}e
RequestHeader add X-Last-name %{AUTHENTICATE_SN}e

Originally created by @deepaksinghkhetwal on GitHub (Jun 20, 2024). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/2720 **Describe the bug** I have configured access to cloudbeaver using reverse proxy(apache web server) adding ldap authentication. I can login to the cloudbeaver successfully. But after some time I am getting below error. I can login to incognito properly though GQL Error: 401 Unauthorized GQL Error: 401 Unauthorized at CustomGraphQLClient.overrideRequest (<removed the url>) at async NetworkStateService.sessionExpiredInterceptor (<removed the url>) at async SessionExpireService.sessionExpiredInterceptor (<removed the url>) at async SessionResource.loader (<removed the url>) at async SessionResource.loadingTask (<removed the url>) at async SessionResource.taskWrapper (<removed the url>) at async Task.task (<removed the url>) I have to remove cache and can login again **To Reproduce** Steps to reproduce the behavior: **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Additional context** On checking logs in the pod, 20-06-2024 07:46:21.211 [qtp182254297-41] ERROR i.c.service.WebServiceBindingBase - Unexpected error during gql request io.cloudbeaver.DBWebException: User authentication failed: Authentication parameter 'user' is missing Below is the header configuration in httpd.conf RequestHeader add X-User %{AUTHENTICATE_SAMACCOUNTNAME}e RequestHeader add X-Role user RequestHeader add X-First-name %{AUTHENTICATE_GIVENNAME}e RequestHeader add X-Last-name %{AUTHENTICATE_SN}e
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#906
No description provided.