Commit 23339e43 by Erik Sundell Committed by Daniel Lee

Stackdriver: Use new access token API

parent 71af62e7
...@@ -332,7 +332,7 @@ func (proxy *DataSourceProxy) applyRoute(req *http.Request) { ...@@ -332,7 +332,7 @@ func (proxy *DataSourceProxy) applyRoute(req *http.Request) {
logger.Error("Failed to render plugin headers", "error", err) logger.Error("Failed to render plugin headers", "error", err)
} }
tokenProvider := newAccessTokenProvider(proxy.ds.Id, proxy.route) tokenProvider := NewAccessTokenProvider(proxy.ds.Id, proxy.route)
if proxy.route.TokenAuth != nil { if proxy.route.TokenAuth != nil {
if token, err := tokenProvider.getAccessToken(data); err != nil { if token, err := tokenProvider.getAccessToken(data); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment