-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #841 from bshaffer/issue-832
mention removal of loadServiceAccountJson in UPGRADING.md
- v2.18.2
- v2.18.1
- v2.18.0
- v2.17.0
- v2.16.1
- v2.16.0
- v2.15.4
- v2.15.3
- v2.15.2
- v2.15.1
- v2.15.0
- v2.14.0
- v2.13.2
- v2.13.1
- v2.13.0
- v2.12.6
- v2.12.5
- v2.12.4
- v2.12.3
- v2.12.2
- v2.12.1
- v2.12.0
- v2.11.0
- v2.10.1
- v2.10.0
- v2.9.2
- v2.9.1
- v2.9.0
- v2.8.3
- v2.8.2
- v2.8.1
- v2.8.0
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.0
- v2.5.0
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-RC8
- v2.0.0-RC7
- v2.0.0-RC6
- v2.0.0-RC5
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,6 +141,24 @@ $user_to_impersonate = '[email protected]'; | |
$client->setSubject($user_to_impersonate); | ||
``` | ||
|
||
Additionally, `Google_Client::loadServiceAccountJson` has been removed in favor | ||
of `Google_Client::setAuthConfig`: | ||
|
||
**Before** | ||
|
||
```php | ||
$scopes = [ Google_Service_Books::BOOKS ]; | ||
$client->loadServiceAccountJson('/path/to/service-account.json', $scopes); | ||
``` | ||
|
||
**After** | ||
|
||
```php | ||
$scopes = [ Google_Service_Books::BOOKS ]; | ||
$client->setAuthConfig('/path/to/service-account.json'); | ||
$client->setScopes($scopes); | ||
``` | ||
|
||
## `Google_Auth_AppIdentity` has been removed | ||
|
||
For App Engine authentication, we now use the underlying [`google/auth`][Google Auth] and | ||
|