Hello all. I’m a long term .net developer.
I am building my first Datasource plugin for Grafana…so far I can get my plugin in and see the config and query editor.
Now exploring how to authenticate against the datasource with is using ADAL.
Normally I would just do this in .Net:
HttpClient client = HttpClientFactory.Create(new WebRequestHandler(),
new AuthenticationHandler(resource, tenant, aadFormat, appId, appKey));
client.BaseAddress = new Uri(address);
I need the equivalent in Angular so that I can make the same API calls.
I’ve seen the adal.js and adal-angular.js files from Microsoft, that I have seen integrated in a pure web app for angular. However, how would I use the same in a Plugin for Grafana?
Has anyone done this before?
Thanks in advance.