Skip to content
New issue

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

By clicking “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? Sign in to your account

fix(daf-did-jwt): Fix parsing of JWT with missing typ in header #293

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

mirceanis
Copy link
Member

JwtMessageHandler can parse them but they fail later in the the message handler chain if typ is missing.

Also, this fixes #291

@mirceanis mirceanis added this to the DAF 7.0 milestone Dec 9, 2020
`JwtMessageHandler` can parse them but they fail later in the the message handler chain if `typ` is missing.

Also, this fixes #291
@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #293 (e752d6c) into beta (3c39484) will decrease coverage by 2.81%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             beta     #293      +/-   ##
==========================================
- Coverage   68.77%   65.96%   -2.82%     
==========================================
  Files          64       64              
  Lines        1736     1569     -167     
  Branches      309      243      -66     
==========================================
- Hits         1194     1035     -159     
+ Misses        445      438       -7     
+ Partials       97       96       -1     

Copy link
Contributor

@simonas-notcat simonas-notcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. But not sure about daf-w3c message handler

packages/daf-did-jwt/src/message-handler.ts Show resolved Hide resolved
@mirceanis mirceanis merged commit 48e4c60 into beta Dec 9, 2020
@mirceanis mirceanis deleted the bugfix/jwt-typ-header branch December 9, 2020 17:14
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.

None yet

2 participants