Skip to content

Commit

Permalink
Adding keyfile to credentialsConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
snake14 committed Jul 30, 2024
1 parent 8c07d88 commit 5e02a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Google/AuthorizationGA4.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]];

Expand Down

0 comments on commit 5e02a65

Please sign in to comment.