← All changes
|
includes/sdk/google/google/auth/src/IamSignerTrait.php
+4
-4
1.2.7
→
1.4.1
View file →
| @@ -14,13 +14,13 @@ | ||
| 14 | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | 15 | * See the License for the specific language governing permissions and |
| 16 | 16 | * limitations under the License. |
| 17 | 17 | */ |
| 18 | -namespace Dudlewebs\WPMCS\Google\Auth; | |
| 18 | +namespace Dudlewebs\WPMCS\GCP\Google\Auth; | |
| 19 | 19 | |
| 20 | 20 | use Exception; |
| 21 | -use Dudlewebs\WPMCS\Google\Auth\HttpHandler\HttpClientCache; | |
| 22 | -use Dudlewebs\WPMCS\Google\Auth\HttpHandler\HttpHandlerFactory; | |
| 21 | +use Dudlewebs\WPMCS\GCP\Google\Auth\HttpHandler\HttpClientCache; | |
| 22 | +use Dudlewebs\WPMCS\GCP\Google\Auth\HttpHandler\HttpHandlerFactory; | |
| 23 | 23 | trait IamSignerTrait |
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | 26 | * @var Iam|null |
| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | if (!$signer) { |
| 52 | 52 | $signer = $this instanceof GetUniverseDomainInterface ? new Iam($httpHandler, $this->getUniverseDomain()) : new Iam($httpHandler); |
| 53 | 53 | } |
| 54 | 54 | $email = $this->getClientName($httpHandler); |
| 55 | - if (is_null($accessToken)) { | |
| 55 | + if (\is_null($accessToken)) { | |
| 56 | 56 | $previousToken = $this->getLastReceivedToken(); |
| 57 | 57 | $accessToken = $previousToken ? $previousToken['access_token'] : $this->fetchAuthToken($httpHandler)['access_token']; |
| 58 | 58 | } |
| 59 | 59 | return $signer->signBlob($email, $accessToken, $stringToSign); |