Skip to content

feat: new AlgorithmMismatchError exception#31

Merged
ixunio merged 2 commits intomainfrom
algorithm-mismatch
Dec 31, 2025
Merged

feat: new AlgorithmMismatchError exception#31
ixunio merged 2 commits intomainfrom
algorithm-mismatch

Conversation

@ixunio
Copy link
Owner

@ixunio ixunio commented Dec 30, 2025

Raise AlgorithmMismatchError whenever decoding a JWT with a valid 'alg' algorithm but that cannot be processed by the JWS instance algorithm declaration. In the future, it will be possible to select multiple algorithms and their related key via a Registry object.

@ixunio ixunio linked an issue Dec 30, 2025 that may be closed by this pull request
@ixunio ixunio force-pushed the algorithm-mismatch branch from d55f51f to ea61d31 Compare December 30, 2025 22:39
@ixunio ixunio force-pushed the algorithm-mismatch branch from ea61d31 to f5cc1ee Compare December 31, 2025 03:37
@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.81%. Comparing base (671f958) to head (f5cc1ee).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   91.56%   91.81%   +0.25%     
==========================================
  Files          13       13              
  Lines         984      990       +6     
  Branches       75       75              
==========================================
+ Hits          901      909       +8     
+ Misses         58       57       -1     
+ Partials       25       24       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ixunio ixunio merged commit f5cc1ee into main Dec 31, 2025
10 checks passed
@ixunio ixunio deleted the algorithm-mismatch branch December 31, 2025 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an AlgorithmMismatchError exception

1 participant