Conversation
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
|
Project is ready to cut releases again. Please update this PR and send a signed CLA. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
We can look at merging this post 1.0.0 from #58 |
|
We need to address it with a more general solution that improves authentication support across both the Trino Web UI and external applications. I created #61 with proposed solution, so let’s use that as the reference point and wait for the generic fix. |
Summary
This PR adds support for passing custom HTTP request headers (for example,
Authorizationtokens or custom user/session headers) to the Trino query client and schema providers.Motivation
In authenticated or proxy-secured Trino environments, requests often require authentication tokens or identity-related headers. Previously, these headers could not be configured through the UI component, making it difficult to integrate with secured deployments.
This change enables host applications to provide custom headers through the main
QueryEditorcomponent. The supplied headers are propagated to:When no custom headers are provided, the client maintains the existing behavior and falls back to the default header:
Example Usage