google-auth-library-php
google-auth-library-php copied to clipboard
Google Auth Library for PHP
See the [NodeJs implementation](https://github.com/googleapis/google-auth-library-nodejs/blob/main/src/auth/pluggable-auth-client.ts) for reference. Support the "executable" credential source for external account credentials. For example: ```json { "type": "external_account", "audience": "//iam.googleapis.com/locations/global/workforcePools/$WF_POOL_ID/providers/$PROVIDER_ID", "subject_token_type": "urn:ietf:params:oauth:token-type:jwt", "token_url": "https://sts.googleapis.com/v1/token", "token_info_url": "https://sts.googleapis.com/v1alpha/token_info", "credential_source":...
would like to be able to use workload identity federation on ecs tasks like ec2 instances.
V2.0
See [UPGRADING.md](https://github.com/googleapis/google-auth-library-php/blob/v2.x/UPGRADING.md) **TODO** - [x] ~~Fix [SysVCachePool race condition](https://github.com/googleapis/google-auth-library-php/issues/226)~~ - [x] Better token expiration - [x] ~~Verify token is not expired before using it (This is now done with the...
See https://github.com/googleapis/google-auth-library-php/pull/469 Implement detection of Windows machines as a fallback when the metadata server ping fails. This is already implemented for Linux. Implementation details can be found at `go/auth-library-noping`, or...
Add automatic retriables for certain error codes. The feature would need to be implemented in `google/gax` to take effect. This is better for Backwards Compatibility and a better design in...
`getenv` and `putenv` are considered not threadsafe. As a result, We should expose a way (similar to symphony's `usePutenv` function) to use the threadsafe version (`$_ENV`) instead. As @DracoBlue mentioned...
```php try { // Generate a refreshable OAuth2 credential for authentication. $oAuth2Credential = (new OAuth2TokenBuilder()) ->withClientId(env('GOOGLE_ADS_CLIENT_ID')) ->withClientSecret(env('GOOGLE_ADS_CLIENT_SECRET')) ->withRefreshToken($refreshToken) ->build(); } catch (\Throwable $e) { return $this->job->fail(); } try { //...
Currently, clients do not have a good way to distinguish retryable errors and implement custom retry strategies. Sometimes this causes infinite retries like here: https://github.com/nwbirnie/gapic-oauth-invalid-hangs. Please prioritize the fix if...
**Is your feature request related to a problem? Please describe.** We had a requirement to use the AdWords API from an application running on App Engine, but all the authentication...
Per #225, filing an additional ticket for this feature request. Thanks again! **Is your feature request related to a problem? Please describe.** The [SysVCacheItemPool](https://github.com/googleapis/google-auth-library-php/blob/master/src/Cache/SysVCacheItemPool.php) class points out that calling code...