Stackdriver: Use new access token API

This commit is contained in:
Erik Sundell 2018-09-09 22:49:52 +02:00 committed by Daniel Lee
parent 71af62e741
commit 23339e4322

View File

@ -332,7 +332,7 @@ func (proxy *DataSourceProxy) applyRoute(req *http.Request) {
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 token, err := tokenProvider.getAccessToken(data); err != nil {