From 1530583a711f4414407112c4068464bcbace1c71 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 1 Dec 2021 22:34:25 -0500 Subject: [PATCH] fix: remove error block of code (#2163) --- README.md | 4 ++-- src/Client.php | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b7f9dae8a..b3149928d 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ composer installed. Once composer is installed, execute the following command in your project root to install this library: ```sh -composer require google/apiclient:^2.12 +composer require google/apiclient:^2.12.1 ``` Finally, be sure to include the autoloader: @@ -61,7 +61,7 @@ you want to keep in `composer.json`: ```json { "require": { - "google/apiclient": "^2.12" + "google/apiclient": "^2.12.1" }, "scripts": { "pre-autoload-dump": "Google\\Task\\Composer::cleanup" diff --git a/src/Client.php b/src/Client.php index 873671c7a..70e8e82d6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -49,7 +49,7 @@ */ class Client { - const LIBVER = "2.12.0"; + const LIBVER = "2.12.1"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; @@ -1255,13 +1255,6 @@ private function createApplicationDefaultCredentials() $credentials->setSub($sub); } - if ($credentials instanceof ServiceAccountCredentials && $this->isUsingJwtWithScope()) { - // tell the credentials to sign scopes into Self-Signed JWTs instead of - // calling the OAuth2 token endpoint - // @see https://google.aip.dev/auth/4111#scope-vs-audience - $credentials->useJwtAccessWithScope(); - } - // If we are not using FetchAuthTokenCache yet, create it now if (!$credentials instanceof FetchAuthTokenCache) { $credentials = new FetchAuthTokenCache(