Support jwt gem 3.x alongside 2.x#726
Conversation
|
LGTM. The change is minimal, well-scoped, and the test results are convincing (1040 unit + 164 integration, zero failures on jwt 3.1.2). Ask: Could you rebase onto master to resolve the |
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
No prob, updated. |
|
Rebased and conflict resolved — anything else needed to get this merged? |
|
@arpit-jn @dan98765 Now that the Ruby-JWT maintainers have published CVE-2026-44351, I'm sure a lot of users are scrambling to upgrade this gem as soon as possible. Is there anything we can do to help expedite this? Second question: Should the |
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)