Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

(Authorization) Headers for individual queries #852

Open
DrakezulsMinimalism opened this issue Oct 8, 2020 · 0 comments · May be fixed by #853
Open

(Authorization) Headers for individual queries #852

DrakezulsMinimalism opened this issue Oct 8, 2020 · 0 comments · May be fixed by #853

Comments

@DrakezulsMinimalism
Copy link

  • InfluxDB-python version: 5.3.0
    InfluxDB, Python and OS are not relevant as the implementation simple does not pass the headers individually

Could we add headers to individual queries?
The client allows headers at construction and for individual "client.request" calls, which is what "client.query" uses internally, however, the query-method does not accept the parameter "headers" currently.

The idea is to have shared clients at the backend for multiple front-end users by only passing the respective authorization headers. I would/will make the changes and submit a pull-request if nobody has concerns for this approach for other (internal) reasons that I have not come across yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant