Skip to content

Commit 1530583

Browse files
authored
fix: remove error block of code (#2163)
1 parent 392c5c7 commit 1530583

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ composer installed.
4040
Once composer is installed, execute the following command in your project root to install this library:
4141

4242
```sh
43-
composer require google/apiclient:^2.12
43+
composer require google/apiclient:^2.12.1
4444
```
4545

4646
Finally, be sure to include the autoloader:
@@ -61,7 +61,7 @@ you want to keep in `composer.json`:
6161
```json
6262
{
6363
"require": {
64-
"google/apiclient": "^2.12"
64+
"google/apiclient": "^2.12.1"
6565
},
6666
"scripts": {
6767
"pre-autoload-dump": "Google\\Task\\Composer::cleanup"

src/Client.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*/
5050
class Client
5151
{
52-
const LIBVER = "2.12.0";
52+
const LIBVER = "2.12.1";
5353
const USER_AGENT_SUFFIX = "google-api-php-client/";
5454
const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke';
5555
const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token';
@@ -1255,13 +1255,6 @@ private function createApplicationDefaultCredentials()
12551255
$credentials->setSub($sub);
12561256
}
12571257

1258-
if ($credentials instanceof ServiceAccountCredentials && $this->isUsingJwtWithScope()) {
1259-
// tell the credentials to sign scopes into Self-Signed JWTs instead of
1260-
// calling the OAuth2 token endpoint
1261-
// @see https://google.aip.dev/auth/4111#scope-vs-audience
1262-
$credentials->useJwtAccessWithScope();
1263-
}
1264-
12651258
// If we are not using FetchAuthTokenCache yet, create it now
12661259
if (!$credentials instanceof FetchAuthTokenCache) {
12671260
$credentials = new FetchAuthTokenCache(

0 commit comments

Comments
 (0)