Support jwt gem 3.x alongside 2.x#726
Open
dan98765 wants to merge 1 commit intoauth0:masterfrom
Open
Conversation
Widen the jwt dependency from `~> 2.7` (which caps at < 3.0) to `>= 2.7, < 4.0`. This allows consumers that depend on both auth0 and a gem requiring jwt 3.x (e.g. workos >= 6.0) to resolve without conflicts. Full test suite (1040 unit + 164 integration examples) passes on jwt 3.1.2 / Ruby 3.3.9 with zero failures. Closes auth0#690
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.
Changes
Widens the
jwtruntime dependency from~> 2.7(which caps at< 3.0) to>= 2.7, < 4.0. This lets consumers that depend on bothauth0and a gem requiringjwt3.x (e.g.workos >= 6.0) resolve without conflicts.No code changes — just the gemspec constraint and the lockfile.
References
workosgem pinnedjwt ~> 3.1starting at v6.0, making it impossible to useworkos >= 6withauth0todayTesting
Ran the full test suite (
bundle exec rake test) on Ruby 3.3.9 withjwt 3.1.2resolved:No new tests needed since this is a dependency constraint change and all existing JWT-related tests already pass against 3.x.
Checklist
rubocopfails to start due to a pre-existing config issue in.rubocop_todo.yml—Metrics/LineLengthrenamed toLayout/LineLength— unrelated to this change)