datasource-proxy: token exchange

This commit is contained in:
Torkel Ödegaard
2017-08-23 17:18:43 +02:00
parent 4f9fbcc211
commit 3c9798bec9
6 changed files with 130 additions and 33 deletions
+4 -4
View File
@@ -5,12 +5,12 @@
"routes": [
{
"path": "api/v5/",
"path": "tokenTest",
"method": "*",
"url": "https://grafana-api.kentik.com/api/v5",
"url": "http://localhost:3333/query",
"tokenAuth": {
"url": "https://login.microsoftonline.com/{{.JsonData.tenantId}}/oauth2/token",
"body": {
"url": "https://login.microsoftonline.com/{{.JsonData.tenantId}}/oauth2/token",
"params": {
"grant_type": "client_credentials",
"client_id": "{{.JsonData.clientId}}",
"client_secret": "{{.SecureJsonData.clientSecret}}",