fix(IT Wallet): [SIW-2981] Request mDL credentials sequentially to bypass async issuance problems#7366
Conversation
PR Title Validation for conventional commit type✅ All good! PR title follows the conventional commit type. |
Jira Pull Request LinkThis Pull Request refers to Jira issues: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7366 +/- ##
==========================================
- Coverage 58.93% 58.89% -0.04%
==========================================
Files 1799 1799
Lines 38775 38799 +24
Branches 8789 8862 +73
==========================================
+ Hits 22851 22852 +1
- Misses 15852 15863 +11
- Partials 72 84 +12
... and 12 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
ale-mazz
left a comment
There was a problem hiding this comment.
Tested as requested and LGTM.
However, given the sensitivity of the code involved, I strongly recommend waiting for additional approval before merging.
Short description
This PR refactors the issuance flow for the mDL specifically to fix a problem introduced by an attempt to bypass failures when requesting both the SD-JWT and mDoc formats in the async flow.
The proposed changes request the mDL sequentially: first the SD-JWT without the reissuance header, then—if successfull—the mDoc with the reissuance header.
List of changes proposed in this pull request
reissuingheader from the issuance flowrequestAndParseCredentialfor better reuseobtainCredentialwith a custom logic for mDL issuanceHow to test
With L3:
reissuing, then the mDoc withreissuingWithout L3:
reissuingreissuing