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

Feature/sdk 39 well known oidf (SDK-44 also) #170

Merged
merged 26 commits into from
Nov 22, 2024

Conversation

sanderPostma
Copy link
Contributor

No description provided.

…wn-oidf

# Conflicts:
#	packages/siop-oid4vp/lib/authorization-response/AuthorizationResponse.ts
#	packages/siop-oid4vp/lib/authorization-response/OpenID4VP.ts
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.49%. Comparing base (11632c3) to head (addbde5).
Report is 28 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #170      +/-   ##
===========================================
- Coverage    48.50%   48.49%   -0.02%     
===========================================
  Files           75       75              
  Lines         5115     5114       -1     
  Branches      1735     1773      +38     
===========================================
- Hits          2481     2480       -1     
  Misses        2631     2631              
  Partials         3        3              
Flag Coverage Δ
unittest 48.49% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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


🚨 Try these New Features:

@sanderPostma
Copy link
Contributor Author

Also contains a fix for mdoc which i stumbled upon

Copy link
Contributor

@zoemaas zoemaas left a comment

Choose a reason for hiding this comment

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

LGTM

@sanderPostma sanderPostma merged commit 7be2c0d into develop Nov 22, 2024
4 checks passed
@BtencateSphereon BtencateSphereon deleted the feature/SDK-39_well-known-oidf branch November 22, 2024 10:10
@TimoGlastra
Copy link
Collaborator

@sanderPostma curious why did you add this code to bypass PEX for mdocs? I recently added the missing pieces for mdoc in PEX (and we're using mdoc with PEX now).

// Handle mdocs, keep them out of pex
  let presentationsArray = (Array.isArray(presentations) ? presentations : [presentations])
  if (presentationsArray.every(p => p.format === 'mso_mdoc')) {
    return
  }  
  presentationsArray = presentationsArray.filter((p) => p.format !== 'mso_mdoc')

Is there something we now need to do manually on top of pex to make it work? Won't this make the PD validation fail if it contains mdoc input descriptors?

@sanderPostma
Copy link
Contributor Author

I have been told PEX does not support mdoc a while ago, and because of this our code base has many places where we keep mdoc out of PEX.
In this instance the Funke mdoc PID crashed our Funke RP flow in validatePresentationAgainstDefinition / assertValidVerifiablePresentations.

@TimoGlastra
Copy link
Collaborator

Can you share the pd and cred? There's tests in PEX that cover the PID in mdoc format:

https://github.com/Sphereon-Opensource/PEX/blob/develop/test/Mdoc.spec.ts

Which version of PEX are you using?

I think the easiest approach is to use PEX for mdoc as well, as it removes the need for a lot of hacks/workarounds

cc @nklomp

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.

3 participants