graphql-datasource icon indicating copy to clipboard operation
graphql-datasource copied to clipboard

OAuth support?

Open vsinha opened this issue 3 years ago • 1 comments

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 avatar Dec 13 '22 19:12 vsinha

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.

vsinha avatar Dec 20 '22 22:12 vsinha