Skip to content

Commit

Permalink
Merge branch 'main' into add-executable-credentialsource
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Feb 7, 2024
2 parents a8768b6 + 6e9c9fd commit b02f3fd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
php-version: 7.4
- name: Install Dependencies
uses: nick-invision/retry@v2
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
- name: Install Dependencies
uses: nick-invision/retry@v2
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
Expand All @@ -37,7 +37,7 @@ jobs:
with:
php-version: "7.4"
- name: Install Dependencies
uses: nick-invision/retry@v2
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

* [feat]: add support for Firebase v6.0 (#391)

## [1.35.0](https://github.com/googleapis/google-auth-library-php/compare/v1.34.0...v1.35.0) (2024-02-01)


### Features

* Add `expires_in` and `token_type` to tokens from `ServiceAccountJwtAccessCredentials` ([#513](https://github.com/googleapis/google-auth-library-php/issues/513)) ([ee2436d](https://github.com/googleapis/google-auth-library-php/commit/ee2436da42bcf3b2ee09ec8d9eda086293c3a3d9))
* Workforce credentials ([#485](https://github.com/googleapis/google-auth-library-php/issues/485)) ([c1b240f](https://github.com/googleapis/google-auth-library-php/commit/c1b240f77e5d2b97c481c9d1f23bd57524a22553))


### Bug Fixes

* Disallow vulnerable guzzle versions ([#520](https://github.com/googleapis/google-auth-library-php/issues/520)) ([cb782dd](https://github.com/googleapis/google-auth-library-php/commit/cb782dd46db94e5ae514c8e66cff6faddfeb4ed8))

## [1.34.0](https://github.com/googleapis/google-auth-library-php/compare/v1.33.0...v1.34.0) (2024-01-03)


Expand Down
8 changes: 8 additions & 0 deletions tests/Credentials/ExternalAccountCredentialsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ public function testGetQuotaProject()
}

/**
* Test the getProjectId method, which makes an API call using the project number in order to
* retrieve the project ID.
*
* @dataProvider provideGetProjectId
*/
public function testGetProjectId(array $jsonCreds, string $expectedProjectNumber)
Expand Down Expand Up @@ -386,6 +389,11 @@ public function provideGetProjectId()
];
}

/**
* the getProjectId method makes an API call using the project number in order to retrieve the
* project ID. Test that a cached access token is used for the API call to fetch the projectId,
* instead of retrieving a new one.
*/
public function testCacheIsCalledForGetProjectIdWithCache()
{
$jsonCreds = [
Expand Down

0 comments on commit b02f3fd

Please sign in to comment.