grafana / grafana-infinity-datasource

CSV, JSON, GraphQL, XML and HTML datasource for grafana.
https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource
Apache License 2.0
733 stars 91 forks source link

[Bug] Auth Token is not refreshed when using plugin with SFDC API #999

Open camsellem opened 6 days ago

camsellem commented 6 days ago

Describe the bug

I'm using the Infinity plugin to query Salesforce API. I'm experiencing the following bug - After setting up the datasource and creating my dashboard, everything works just fine. Although if I come back 24/48 hours after on the dashboard I'm getting a 401 unauthorized error on every panels. To fix it I need to edit the datasource and perform a health check - then it works again. My assumption is that my token expires and it's not refreshed within the dashboard hence the need of editing the datasource again.

Steps to reproduce

Create a connected App in SFDC to access the REST API Create an Infinity Datasource Authenticate using OAuth2 using Client ID and Client Secret Create a Panel and retrieve some SFDC Data Open the dashboard again a day or two after Error should pop up Edit the datasource and perforce a health check to refresh the token Dashboard is ok again

Note: bugs will be fixed only if enough information provided to reproduce the issue

Sample Data

Provide a link for sample data, or provide sample data bellow

Screenshots

Image

If applicable, add screenshots to help explain your problem.

Version Details:

Additional context

Add any other context about the problem here.