Stackdriver: Use ds_auth_provider in stackdriver. This will make sure the token is renewed when it has exporired

This commit is contained in:
Erik Sundell
2018-09-14 09:38:16 +02:00
committed by Daniel Lee
parent db170845b0
commit 56e8e50497
4 changed files with 32 additions and 32 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ import (
"github.com/grafana/grafana/pkg/util"
)
func applyRoute(ctx context.Context, req *http.Request, proxyPath string, route *plugins.AppPluginRoute, ds *m.DataSource) {
//ApplyRoute should use the plugin route data to set auth headers and custom headers
func ApplyRoute(ctx context.Context, req *http.Request, proxyPath string, route *plugins.AppPluginRoute, ds *m.DataSource) {
proxyPath = strings.TrimPrefix(proxyPath, route.Path)
data := templateData{