GoogleCloudMonitoring: use grafana-google-sdk-go for auth (#40490)

This commit is contained in:
Isabella Siu
2021-10-21 16:29:56 -04:00
committed by GitHub
parent 624d7631e6
commit 97df4a57f4
6 changed files with 45 additions and 198 deletions
+1 -2
View File
@@ -105,8 +105,7 @@ func getTokenProvider(ctx context.Context, cfg *setting.Cfg, ds DSInfo, pluginRo
if jwtTokenAuth == nil {
return nil, fmt.Errorf("'jwtTokenAuth' not configured for authentication type '%s'", authType)
}
provider := newGceAccessTokenProvider(ctx, ds, pluginRoute, jwtTokenAuth)
return provider, nil
return newGceAccessTokenProvider(ctx, ds, pluginRoute, jwtTokenAuth), nil
case "jwt":
if jwtTokenAuth == nil {