Skip to content

Commit 1867f1e

Browse files
authored
feature: Support Legacy Protocol 'openid4vp' for DC-API (#363)
- 'openid4vp' will be handled the same 'opendi4vp-v1-unsigned' Signed-off-by: Kevin <kevin.dinh@lissi.id>
1 parent 39ba9f9 commit 1867f1e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/WalletFramework.Oid4Vc/Oid4Vp/DcApi/DcApiConstants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ public static class DcApiConstants
55
public const string SignedProtocol = "openid4vp-v1-signed";
66

77
public const string UnsignedProtocol = "openid4vp-v1-unsigned";
8+
9+
public const string LegacyProtocol = "openid4vp";
810
}

src/WalletFramework.Oid4Vc/Oid4Vp/DcApi/Models/DcApiRequestItem.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ private static Validation<AuthorizationRequest> ProcessAuthRequest(JObject jObje
8383
switch (protocol)
8484
{
8585
case DcApiConstants.UnsignedProtocol:
86+
case DcApiConstants.LegacyProtocol:
8687
var r = AuthorizationRequest.CreateAuthorizationRequest(jObject);
8788
return LiftRequest(r);
8889
case DcApiConstants.SignedProtocol:

0 commit comments

Comments
 (0)