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

Handle unpadded protected header in PackWireFormat::get_recipient_keys #1324

Merged

Conversation

andrewwhitehead
Copy link
Contributor

I believe this only affects connection establishment when using an Askar wallet together with multi-tenant wallets.

Fixes #1323

@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2021

Codecov Report

Merging #1324 (b82780f) into main (a58d7ba) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1324   +/-   ##
=======================================
  Coverage   95.43%   95.43%           
=======================================
  Files         476      476           
  Lines       28966    28966           
=======================================
  Hits        27645    27645           
  Misses       1321     1321           

Signed-off-by: Andrew Whitehead <[email protected]>
@baegjae
Copy link
Contributor

baegjae commented Jul 19, 2021

@andrewwhitehead It work well with regards to #1323. Thanks!

Copy link
Contributor

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

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

LGTM. What is the reason this doesn't work with Askar? Not entirely clear to me

@andrewwhitehead
Copy link
Contributor Author

@TimoGlastra I think Indy-SDK must be padding the base64-encoded protected header, which seems to be counter to the JWE spec but is generally accepted.

@andrewwhitehead andrewwhitehead merged commit 9e786f3 into openwallet-foundation:main Jul 19, 2021
@andrewwhitehead andrewwhitehead deleted the fix/get_pack_recip branch July 19, 2021 16:03
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.

[multitenancy + askar] connection error occurs occasionally
4 participants