Google php client library loadServiceAccountJson broken - fix enclosed
问题 The new function in the php library loadServiceAccountJson doesn't allow setting sub in the Google_Auth_AssertionCredentials creator, so always gives authorization fails. How do we get the library updated? The following instructions will allow a working query, in my case to the Admin SDK Directory API: First, update the php library function loadServiceAccountJson in src/Google/Client.php to this: public function loadServiceAccountJson($jsonLocation, $scopes) { $data = json_decode(file_get