Add web-token/jwt-framework ^4.0 support#219
Open
amitsamtani wants to merge 1 commit intoCyberSource:masterfrom
Open
Add web-token/jwt-framework ^4.0 support#219amitsamtani wants to merge 1 commit intoCyberSource:masterfrom
amitsamtani wants to merge 1 commit intoCyberSource:masterfrom
Conversation
…ompatibility The jwt-framework 4.0 removed compression classes (CompressionMethodManager, Deflate) per RFC 8725 Section 3.6, and simplified JWEBuilder/JWEDecrypter constructors to accept a single AlgorithmManager. Changes: - Remove CompressionMethodManager and Deflate usage from MLEUtility and JWEUtility - Simplify JWEBuilder/JWEDecrypter constructors to single AlgorithmManager - Widen composer.json constraint to ^2.2.11|^3.3.5|^4.0 This unblocks Laravel 13 which requires Symfony 8 components.
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.
Summary
This PR adds support for
web-token/jwt-frameworkv4.x, which is required for compatibility with Symfony 8 and Laravel 13.Currently, the SDK constrains
web-token/jwt-frameworkto^2.2.11|^3.3.5. Since v3.x depends on Symfony <8 components, any project using Laravel 13 (which requires Symfony 8) cannot installcybersource/rest-client-phpdue to dependency conflicts.Changes
composer.json^2.2.11|^3.3.5→^2.2.11|^3.3.5|^4.0lib/Authentication/Util/MLEUtility.phpCompressionMethodManagerandDeflateimports and usage (removed in jwt-framework 4.0 per RFC 8725 Section 3.6)JWEBuilderconstructor to accept a singleAlgorithmManager(4.0 API)lib/Authentication/Util/JWE/JWEUtility.phpJWEDecrypterin bothdecryptJWEUsingPEM()anddecryptJWEUsingPrivateKey()AlgorithmManagerinstances into one (4.0 API)Why
web-token/jwt-framework4.0 removed compression support following RFC 8725 security recommendationsJWEBuilderandJWEDecrypterconstructors were simplified to accept a singleAlgorithmManagerinstead of separate managersTesting
web-token/jwt-framework4.1.4 + Symfony 8 + Laravel 13