GoogleCloudMonitoring: use grafana-google-sdk-go for auth (#40490)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user