Skip to content

Releases: auth0/auth0-PHP

8.5.0

27 Mar 22:13
Compare
Choose a tag to compare

This release improves the SDK's automatic discovery process of compatible HTTP clients, factories and messages (PSR-18, 17 and 7, respectively). If you encounter issues with your implementation not being discovered, please open an issue.

This release also introduces support for a number of additional Management API endpoints.

Added

  • State Management

    • Added Auth0\SDK\Auth0::refreshState() to force a refresh of the SDK's internal state. This is useful when you have updated the SDK's configuration and want to ensure the SDK is using the latest values.
  • Management API

    • Auth0\APIs\Management\Users
      • DELETE /users/:id/authenticatorsdeleteAllAuthenticators() (#702) (Documentation)
    • Support for Authentication Method endpoints: (#707):
      • GET /api/v2/users/:user/authentication-methodsgetAuthenticationMethods() (Documentation)
      • PUT /api/v2/users/:user/authentication-methodsreplaceAuthenticationMethods() (Documentation)
      • DELETE /api/v2/users/:user/authentication-methodsdeleteAuthenticationMethods(string user) (Documentation)
      • POST /api/v2/users/:user/authentication-methodscreateAuthenticationMethod() (Documentation)
      • GET /api/v2/users/:user/authentication-methods/:methodgetAuthenticationMethod() (Documentation)
      • PATCH /api/v2/users/:user/authentication-methods/:methodupdateAuthenticationMethod() (Documentation)
      • DELETE /api/v2/users/:user/authentication-methods/:methoddeleteAuthenticationMethod() (Documentation)

Fixed

  • Transient storage would sometimes not be fully cleared after a successful code exchange under certain conditions.
  • Calls to certain methods under Auth0\SDK\API\Authentication with manually assigned client_id or client_secret parameters could have those values overwritten by the SDK's assigned configuration. #705

Changed

  • Upgraded test suite to PEST 2.0 framework.
  • Updated code styling rules, along with some light refactoring.
  • Updated production dependencies:
    • Replaced php-http/discovery dependency with psr-discovery/all.
    • Replaced php-http/httplug dependency with psr-discovery/all.
  • Updated development dependencies:
    • Removed ergebnis/composer-normalize as it now runs in CI.
    • Removed firebase/php-jwt as it was replaced by an in-library generator.
    • Replaced hyperf/event with symfony/event-dispatcher.
    • Replaced laravel/pint with friendsofphp/php-cs-fixer.
    • Replaced nyholm/psr7 with psr-mock/http-factory-implementation.
    • Replaced php-http/mock-client with psr-mock/http-client-implementation.
    • Updated vimeo/psalm to 5.8.
    • Updated phpstan/phpstan to 1.10.
    • Updated rector/rector to 0.15.

Thanks to our contributors for this release: knash94

8.4.0

24 Jan 17:25
5764289
Compare
Choose a tag to compare

Added

Changed

  • Restore test coverage to 100% #697 (evansims)
  • Exclude unnecessary files from distribution package #696 (ramsey)

8.3.8

02 Dec 07:17
cb15b21
Compare
Choose a tag to compare

Full Changelog

Fixed

  • fix: Always store provided state in transient medium #674 (evansims)

8.3.7

08 Nov 02:27
c97edba
Compare
Choose a tag to compare

Full Changelog

Fixed

  • fix: emailPasswordlessStart() incorrectly passes params as array under some conditions #670 (evansims)
  • fix: Remove redundant Cache getItem() call in Auth0\SDK\Token\Verifier::getKeySet() #669 (pkivits-litebit)

8.3.6

25 Oct 15:54
fd3161b
Compare
Choose a tag to compare

Full Changelog

Fixed

  • Allow SdkConfiguration::setScope() to be nullable #665 (evansims)

8.3.5

21 Oct 19:49
a62782c
Compare
Choose a tag to compare

Full Changelog

Fixed

  • [SDK-3722] Fix: Stateless strategies should not invoke stateful session classes #662 (evansims)

8.3.4

20 Oct 03:35
7e76475
Compare
Choose a tag to compare

Full Changelog

Fixed

  • Fix SdkConfiguration::setScope() not assigning default values when an empty array is passed #659 (evansims)

8.3.3

20 Oct 01:22
2419cbf
Compare
Choose a tag to compare

Full Changelog

Fixed

8.3.2

19 Oct 01:37
e35111c
Compare
Choose a tag to compare

Fixed

  • Fix PHP 8.0+ SdkConfiguration named arguments usage #654 (evansims)

8.3.1

27 Sep 09:10
848c702
Compare
Choose a tag to compare

Full Changelog

Changed

  • [SDK-3647] Add PHP 8.2.0-dev to test matrix #650 (evansims)

Fixed

  • [SDK-3646] Reliability and performance improvements to CookieStore #649 (evansims)

Note: Previously in some circumstances, cookie secrets were not always being required in strategies where they should have been required. This has been resolved as part of the fixes in this release. If you are suddenly prompted to configure a cookie secret in an app that doesn't use sessions/cookies, please ensure you are using the correct strategy: https://github.com/auth0/auth0-PHP/tree/8.3.1#configuration-strategies