Skip to content

feat: auth0-php v9 compatibility (6.x beta groundwork) - #956

Merged
kishore7snehil merged 2 commits into
6.xfrom
feat/auth0-php-v9-compat
Aug 7, 2026
Merged

feat: auth0-php v9 compatibility (6.x beta groundwork)#956
kishore7snehil merged 2 commits into
6.xfrom
feat/auth0-php-v9-compat

Conversation

@kishore7snehil

@kishore7snehil kishore7snehil commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Auth0 WordPress Plugin - auth0-php v9 compatibility

This PR moves the plugin onto auth0-php v9 and lands the groundwork for the upcoming 6.x major. It targets the 6.x mainline branch. Version bumps (.version, wpAuth0.php, CHANGELOG) are intentionally not included here - those ship in a separate release/6.0.0-beta.0 PR, mirroring the auth0-php release model.

What's New

  • auth0-php v9: the plugin now requires auth0/auth0-php ^9.0@beta, whose Management API is generated from Auth0's OpenAPI specs (typed requests/responses, property-access sub-clients).
  • Plugin::getManagement(): a new accessor that returns a v9 Management client built from the plugin's existing Domain / Client ID / Client Secret configuration. It fetches and caches a client-credentials token for you.
  • Background user sync on v9: the WordPress→Auth0 sync (create / update / delete, with password-change and email-verification tickets) is rebuilt onto the v9 typed Management API.
  • PHP 8.2+: the supported PHP floor is raised to 8.2.

Breaking Changes

Area 5.x 6.x
auth0/auth0-php ^8.19 ^9.0
PHP ^8.1 >=8.2
Management access getSdk()->management() getManagement()
Management responses raw PSR-7 typed objects

The v8-style getSdk()->management() is non-functional in auth0-php v9. Use getManagement() instead.

What's NOT Affected

Authentication flows are unchanged. Login, callback, logout, session handling, and the WordPress login fallback behave exactly as they did in 5.x. The v9 migration is confined to the Management API surface (used by background user sync).

Documentation

  • README.md: PHP 8.2 requirement, refreshed feature overview (authentication, account mapping, background sync).
  • UPGRADING.md: a new "5.x to 6.x" section covering the dependency bump and the Management API migration.

Beta Notice

This is groundwork for a beta release. The authentication surface is stable; the Management API in auth0-php v9 is itself in beta and minor adjustments may occur before the final 6.0.0.

@kishore7snehil
kishore7snehil requested a review from a team as a code owner June 14, 2026 14:59
Comment thread scoper.inc.php Outdated
Comment thread scoper.inc.php
Comment thread build.sh
Comment thread composer.json
Comment thread src/Actions/Sync.php
Comment thread src/Plugin.php
Comment thread UPGRADING.md
Comment thread UPGRADING.md Outdated
Comment thread wpAuth0.php
Comment thread src/Actions/Base.php
Comment thread src/Actions/Sync.php
Comment thread src/Actions/Sync.php
@kishore7snehil
kishore7snehil merged commit 6fafd48 into 6.x Aug 7, 2026
1 check passed
@kishore7snehil
kishore7snehil deleted the feat/auth0-php-v9-compat branch August 7, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants