Skip to content

8.5.0

Compare
Choose a tag to compare
@evansims evansims released this 27 Mar 22:13
· 271 commits to main since this release

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