mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-03-04 08:52:27 -05:00
Support HTTP header credentials for the authLogin graphql query #1053
Labels
No labels
AS
can't reproduce
can't reproduce
deployment
development
documentation
duplicate
duplicate
ee
enhancement
external
new driver
performance
third party issue
wait for response
wait for review
wontfix
x:Oracle
x:cassandra
x:clickhouse
x:db2
x:duckdb
x:greenplum
x:h2
x:h2gis
x:hana
x:hive
x:intersystems
x:kyuubi
x:maria
x:mongo
x:mysql
x:postgresql
x:presto
x:sql server
x:sqlite
x:teradata
x:trino
xf:accessibility
xf:administration
xf:authentication
xf:aws
xf:commit-mode
xf:connection
xf:data editor
xf:datatransfer
xf:dba
xf:driver management
xf:erd
xf:filters
xf:i18n
xf:i18n
xf:installer
xf:json
xf:ldap
xf:local config
xf:log viewer
xf:metadata
xf:metadata editor
xf:navigator
xf:okta
xf:query manager
xf:resource manager
xf:scripts
xf:sql editor
xf:tasks
xf:ui/uix
xo: Firefox
xo:eclipse
xo:internet explorer
xo:macos
xp:major
xrn:internal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudbeaver#1053
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vdbe on GitHub (Feb 7, 2026).
Is your feature request related to a problem? Please describe.
Currently to authorize a graphql query all parameters have to be in the body of
the post request. Many tools like the grafana infinity data source
support adding authentication values via HTTP header, but do not support modifying the request body.
This makes it difficult to use them with the cloudbeaver graphql api.
Describe the solution you'd like
There are multiple ways to support authentication via headers. Two possible approaches are outlined below.
Option 1: Standard
AuhtorizationheaderSuport using
Authorization: Bearer <TOKEN>forauthLogin.The Reverse Proxy handler already apperts to support header-based authentication:
github.com/dbeaver/cloudbeaver@b0205e34c7/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/RPSessionHandler.java (L97-L100)This seems like the cleanest solution.
Option 2: Custom headers mapped into the
credentialsobjectAllow custom headers to be injected into the
credentialsobject when authenticatinggithub.com/dbeaver/cloudbeaver@b0205e34c7/server/bundles/io.cloudbeaver.service.auth/src/io/cloudbeaver/service/auth/WebServiceBindingAuth.java (L43)I would be happy to implement this or provide a POC.
Describe alternatives you've considered
Using the reverse proxy provider.
Additional context
Below is an example request using Option 2, where authentication data is partially provided via HTTP headers:
@dariamarutkina commented on GitHub (Feb 9, 2026):
Hello, @vdbe !
Could you please clarify which CloudBeaver edition you are using?
CloudBeaver Enterprise Edition supports API access tokens. You can find the documentation here:
https://dbeaver.com/docs/cloudbeaver/Generate-API-access-token/
You are welcome to try it with a free 2-week trial 🦫
@vdbe commented on GitHub (Feb 9, 2026):
I'm using the team edition with the API access token provider.
The issue is that the token must be included in the request body rather than (optionally) in the request header, like described in option 1.
@dariamarutkina commented on GitHub (Feb 9, 2026):
Thanks for the suggestion and for sharing your use case! 💙
This is a good idea, and we plan to add support for this in one of the upcoming sprints 🦫