Skip to content

Authentication with Usename and Password for Client.Legacy #64

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
mexxBf opened this issue Feb 29, 2020 · 5 comments · Fixed by #65
Closed

Authentication with Usename and Password for Client.Legacy #64

mexxBf opened this issue Feb 29, 2020 · 5 comments · Fixed by #65
Labels
enhancement New feature or request
Milestone

Comments

@mexxBf
Copy link

mexxBf commented Feb 29, 2020

I would love to know a way to authenticate with the legacy client. I want to use flux to query data from an InfluxDB 1.7.10.

In the examples I could not find any clues on how to do it.

Thank you.

@bednar bednar added this to the 1.6.0 milestone Mar 2, 2020
@bednar bednar added the bug Something isn't working label Mar 2, 2020
@bednar
Copy link
Contributor

bednar commented Mar 2, 2020

Hi @mexxBf,

Currently the legacy client doesn't supports authenticated requests, but will fix that as soon as possible... probably in milestone 1.6.0.

Regards

@mexxBf
Copy link
Author

mexxBf commented Mar 9, 2020

Hi @bednar,

is there any ETA to version 1.6.0? Its a showstopper for me, so I'am curious :)

Thanks

@bednar
Copy link
Contributor

bednar commented Mar 9, 2020

Hi @mexxBf,

version 1.6.0 will be released probably this Friday.

Regards

@bednar bednar closed this as completed in #65 Mar 9, 2020
@bednar bednar added enhancement New feature or request and removed bug Something isn't working state: in progress labels Mar 9, 2020
@bednar
Copy link
Contributor

bednar commented Mar 9, 2020

Hi @mexxBf,

The issue is fixed in 1.6.0 milestone.

Authenticate requests

// client creation
var options = new FluxConnectionOptions("http://127.0.0.1:8086", "my-user", "my-password".ToCharArray());

var fluxClient = FluxClientFactory.Create(options);

fluxClient.QueryAsync(...)
...

If you would like to use a preview version use our dev build:

dotnet add package InfluxDB.Client.Flux --version 1.6.0-dev.443

Regards

@Wawszczak
Copy link

Unfortunatelly this method of authentication is not secure, because it adds credentials to URL not to request headers.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants