Changing the default p12 file for the new json configuration service account file
This commit is contained in:
jennydmz
2015-12-22 17:17:43 -04:00
parent 547b4e20fc
commit 23a99fad79
2 changed files with 3 additions and 2 deletions

View File

@@ -297,10 +297,11 @@ class PMGoogleApi
} else {
throw new Exception(G::LoadTranslation('ID_GOOGLE_FILE_P12_ERROR'));
}
$data = json_decode($key);
$assertionCredentials = new Google_Auth_AssertionCredentials(
$credentials->emailServiceAccount,
$scope,
$key
$data->private_key
);
$assertionCredentials->sub = $this->user;