-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Auth Token? #90
Comments
Unfortunately no, only basic auth at the moment. v2.0 isn't supported yet, but It's planed for the future. |
Do you have any solid plans for influxdb-2.x authentication yet? I have added http support for auth tokens in my fork of this repo. It is largely untested but it works for my use-case (simple read operation). The API functionality I've added is to include the token in the input url as follows, which I'm sure can be improved: |
Not yet, sorry. If you have an implementation already, it feel free to contribute! 😃 Let me know if you need some help. A more common format would be |
I will have a look at implementing this and contributing when I get the time. My only worry with |
I wouldn't expect |
@offa maybe this will be helpfull too: |
Yes, it might be worth to add an additional API that enables programmatic setting of connection infos. Using an URL string becomes limiting at some point. While I'm not sure how to design the factory API yet (given, there are some different types transport), are you interested to submit the changes to |
Hi all, any news on this? What about merging the proposed changes? |
I'm going to implement basic url string based token support (as credentials are now). The linked changes aren't compatible anymore, the http backend has been replaced in the recent releases. |
PR is open (#214). I had no opportunity to test it on a real database yet, if someone could give it a try. |
In Influx 2.0 the authentication is done via tokens.
https://docs.influxdata.com/influxdb/v2.0/write-data/developer-tools/api/#example-api-write-request
Is this somehow already supported in influxdb-cxx?
The text was updated successfully, but these errors were encountered: