Skip to content

Releases: googleapis/google-auth-library-php

v1.25.0

26 Jan 22:04
0865c44
Compare
Choose a tag to compare

1.25.0 (2023-01-26)

Features

  • Add getFetcher to FetchAuthTokenCache (#431) (cf7ac54)

v1.24.0

28 Nov 18:29
1f8cff5
Compare
Choose a tag to compare

1.24.0 (2022-11-28)

Features

  • Add ImpersonatedServiceAccountCredentials (#421) (de766e9)

v1.23.1

26 Oct 20:31
cb43cb8
Compare
Choose a tag to compare

1.23.1 (2022-10-25)

Bug Fixes

  • Do not call GCECredentials::onGCE if ADC has already checked (#422) (085cc64)

v1.23.0

27 Sep 16:55
8da1610
Compare
Choose a tag to compare

1.23.0 (2022-09-26)

Features

  • Double default truncateAt for guzzle error output (#415) (e2f6a89)

v1.22.0

01 Sep 17:20
da4037d
Compare
Choose a tag to compare

Features

  • CredentialsLoader::updateMetadata now supports id_token (#405)

Bug Fixes

  • remove catching non-existent class (#407)
  • add eager refresh (#411)

v1.21.1

13 Jun 19:24
aa3b9ca
Compare
Choose a tag to compare

Bug Fixes

  • firebase jwt decode for 5.5+ (#402)
  • ensure result of fetchAuthToken is an array (#401)

v1.21.0

13 Apr 21:24
73392ba
Compare
Choose a tag to compare

Features

  1. Support for Firebase v6.0 (#391)

IMPORTANT This release will break backwards compatibility in some cases. If you are using OAuth2::verifyIdToken and passing multiple algorithms as the second argument, this will now throw an exception:

// No problem here, only 1 algorithm is being used
$oauth->verifyIdToken($publicKeys, ['RS256']);

// This was accepted before, but it will now throw an InvalidArgumentException
$oauth->verifyIdToken($publicKeys, ['RS256', 'HS256']);

This is because we are closing a security vulnerability (see CVE-2021-46743 and GHSA-8xf4-w7qw-pjjw), and there is no way to close it without throwing an exception in this case. The recommended way to do this is now to pass an array of Firebase\JWT\Key as $publicKeys:

// create an array of Firebase\JWT\Key. For example:
use Firebase\JWT\Key;
$keys = [
    new Key($publicKeys[0], 'RS256'),
    new Key($publicKeys[1], 'HS256'),
];
$oauth->verifyIdToken($keys);

v1.20.1

13 Apr 02:07
3a1a5c5
Compare
Choose a tag to compare

Miscellaneous

  • many fixes and improvements to phpdoc, thanks to phpstan (#392)

v1.20.0

11 Apr 19:05
321e5b6
Compare
Choose a tag to compare

Dropping Support

  • PHP 5.6 and 7.0 are no longer supported

Features

  • add support for psr/cache:3 (#364)
  • add Google\Auth\Cache\TypedItem (for psr/cache:3) (#364)

Bug Fixes

  • throw audience mismatch when audience doesn't exist (#370)

v1.19.0

24 Mar 21:23
31e5d24
Compare
Choose a tag to compare

Dropping Support

  • PHP 5.4 and 5.5
  • Guzzle 5
  • Firebase JWT 2.0, 3.0, and 4.0