Skip to content
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

[ENHANCEMENT] - ability to change credentials (type) for existing client #186

Open
raybog opened this issue Oct 9, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@raybog
Copy link

raybog commented Oct 9, 2021

Is your feature request related to a problem? Please describe.
Credentials are static and set when connection/client to ES is created.

Describe the solution you'd like
It should be possible to change the Credentials on each API call e.g.:
some_connection.transport().setCredentials(Credentials::Bearer(some_token)).get(GetParts::IndexId(&INDEX, &id)).pretty(true).send().await?

Describe alternatives you've considered
Creating a new connection on each request when different Credentials has to be used.

@raybog raybog added the enhancement New feature or request label Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant