From 5e02a65adc381749d21422e36b458d08f5de0ffe Mon Sep 17 00:00:00 2001 From: Jacob Ransom Date: Tue, 30 Jul 2024 17:02:44 +1200 Subject: [PATCH] Adding keyfile to credentialsConfig --- Google/AuthorizationGA4.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Google/AuthorizationGA4.php b/Google/AuthorizationGA4.php index c66d52df..fb2e4948 100644 --- a/Google/AuthorizationGA4.php +++ b/Google/AuthorizationGA4.php @@ -48,7 +48,7 @@ protected function getClientClassArguments(): array $proxyHttpClient = StaticContainer::get('GoogleAnalyticsImporter.proxyHttpClient'); if ($proxyHttpClient) { $proxyHttpHandler = \Matomo\Dependencies\GoogleAnalyticsImporter\Google\Auth\HttpHandler\HttpHandlerFactory::build($proxyHttpClient); - $arguments['credentialsConfig'] = ['authHttpHandler' => $proxyHttpHandler]; + $arguments['credentialsConfig'] = ['authHttpHandler' => $proxyHttpHandler, 'keyFile' => $arguments['keyFile']]; $arguments['transport'] = 'rest'; $arguments['transportConfig'] = ['rest' => ['httpHandler' => $proxyHttpHandler]];