File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/WalletFramework.Oid4Vc/Oid4Vp/PresentationExchange/Services Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ private async Task<Option<IEnumerable<ICredential>>> GetMatchingCredentials(
182
182
var filteredMdocRecords = mdocRecords . OnSome ( records => records
183
183
. Where ( record =>
184
184
{
185
- return record . Mdoc . IssuerSigned . IssuerAuth . ProtectedHeaders . Value . TryGetValue ( new CoseLabel ( 1 ) , out var alg )
185
+ return record . DocType == inputDescriptor . Id
186
+ && record . Mdoc . IssuerSigned . IssuerAuth . ProtectedHeaders . Value . TryGetValue ( new CoseLabel ( 1 ) , out var alg )
186
187
&& supportedFormatSigningAlgorithms . Match (
187
188
formats => formats . MDocFormat ? . Alg ? . Contains ( alg . ToString ( ) ) ?? true ,
188
189
( ) => inputDescriptor . Formats ? . MDocFormat ? . Alg ? . Contains ( alg . ToString ( ) ) ?? true )
You can’t perform that action at this time.
0 commit comments