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

Support for basic auth #25

Closed
EnTaroJankov opened this issue Sep 30, 2021 · 1 comment
Closed

Support for basic auth #25

EnTaroJankov opened this issue Sep 30, 2021 · 1 comment

Comments

@EnTaroJankov
Copy link

Hello,

I want support added for authenticating with username and password, so that people who don't have permissions to create API keys can still make use of this program in restricted Grafana instances.

Thanks!

@EnTaroJankov
Copy link
Author

I realized that the underlying Grafana Client, grafana-tools https://github.com/grafana-tools/sdk/blob/888ef9d18611f1503efe233ad507fca8cc8fcf53/rest-request.go#L61, already supports basic auth by passing in username:password. It would be nice to mention this in the documentation and to rename the apikey field to apiKeyOrBasicAuth since it is already supported as is.

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

No branches or pull requests

1 participant