fifemon / graphql-datasource

Grafana datasource plugin to query data from a GraphQL API
https://grafana.com/grafana/plugins/fifemon-graphql-datasource
Other
63 stars 34 forks source link

OAuth support? #87

Open vsinha opened 1 year ago

vsinha commented 1 year ago

I'd like to add the ION graphql api (docs here), which I think is using an OAuth implementation. I can manually generate an auth token and apply that as custom HTTP headers, and this graphql-datasource plugin works in that case. However, the auth token expires, so ideally the plugin should do the auth dance on its own. Is this possible as it's currently written, or would this require adding a new feature?

vsinha commented 1 year ago

Update/workaround: the grafana-infinity plugin support OAuth1 and OAuth2 and supports graphql endpoints. If you need this functionality just switch to that plugin instead.