feat: auth0-php v9 compatibility (6.x beta groundwork)#956
Open
kishore7snehil wants to merge 1 commit into
Open
feat: auth0-php v9 compatibility (6.x beta groundwork)#956kishore7snehil wants to merge 1 commit into
kishore7snehil wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.xmainline branch. Version bumps (.version,wpAuth0.php, CHANGELOG) are intentionally not included here — those ship in a separaterelease/6.0.0-beta.0PR, mirroring the auth0-php release model.What's New
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.Breaking Changes
^8.19^9.0^8.1>=8.2getSdk()->management()getManagement()The v8-style
getSdk()->management()is non-functional in auth0-php v9. UsegetManagement()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.