Skip to content

Tests for finding out if a token is a compact JWS, json JWS or a JWE.… #140

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 8 commits into from
May 13, 2023

Conversation

rohe
Copy link
Contributor

@rohe rohe commented May 2, 2023

This is for cases where you might receive a compact JWS, a json JWS or a JWE and you'd like to know upfront if it's likely to be one or the other.

These are not providing the absolute truth that you won't get before you have verified the signature on a JWS or decrypted a JWE but it gives you a hint.

@rohe rohe requested a review from jschlyter May 2, 2023 13:24
@codecov-commenter
Copy link

codecov-commenter commented May 4, 2023

Codecov Report

Merging #140 (d922bcc) into main (8cb2034) will decrease coverage by 0.19%.
The diff coverage is 59.01%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #140      +/-   ##
==========================================
- Coverage   77.44%   77.25%   -0.19%     
==========================================
  Files          42       42              
  Lines        4362     4419      +57     
  Branches      982      920      -62     
==========================================
+ Hits         3378     3414      +36     
- Misses        717      733      +16     
- Partials      267      272       +5     
Impacted Files Coverage Δ
src/cryptojwt/utils.py 76.96% <59.01%> (-5.36%) ⬇️

... and 1 file with indirect coverage changes

@jschlyter jschlyter self-requested a review May 8, 2023 09:05
@rohe rohe requested a review from jschlyter May 10, 2023 06:58
@rohe rohe merged commit 0a5a521 into main May 13, 2023
@rohe rohe deleted the is_compact branch May 13, 2023 09:55
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants