web-token/jwt-easy is deprecated, and web-token/jwt-library should be used instead (or a subset of it's exported packages.

The library requires PHP 8.1, so it would likely also involve dropping Drupal 9 support, or releasing this under a new major.

Unsure about what the test controller asserted, but I tried to recreate the logic using the exports available in jwt-library.

Issue fork jwt_block-3457353

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kevineinarsson created an issue. See original summary.

kevineinarsson’s picture

Status: Active » Needs review
kevineinarsson’s picture

Issue summary: View changes

  • edurenye committed 03597a39 on 1.0.x
    Issue #3457353: Replaced jwt-easy with jwt-toolkit
    
edurenye’s picture

Status: Needs review » Fixed

Looks good to me. Thank you @kevineinarsson !
I created a release for Drupal 9 (https://www.drupal.org/project/jwt_block/releases/1.0.0-alpha0) in case there are people still using it in Drupal 9.
Now I'll create a new release alpha1 for Drupal 10 and 11.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.