diff --git a/src/WalletFramework.Oid4Vc/Oid4Vp/Models/AuthorizationRequest.cs b/src/WalletFramework.Oid4Vc/Oid4Vp/Models/AuthorizationRequest.cs index da0ba48..2e2f9b4 100644 --- a/src/WalletFramework.Oid4Vc/Oid4Vp/Models/AuthorizationRequest.cs +++ b/src/WalletFramework.Oid4Vc/Oid4Vp/Models/AuthorizationRequest.cs @@ -12,6 +12,7 @@ namespace WalletFramework.Oid4Vc.Oid4Vp.Models; public record AuthorizationRequest { private const string DirectPost = "direct_post"; + private const string DirectPostJwt = "direct_post.jwt"; private const string VpToken = "vp_token"; @@ -130,7 +131,7 @@ private static bool IsHaipConform(JObject authorizationRequestJson) return responseType == VpToken - && responseMode == DirectPost + && responseMode == DirectPost || responseMode == DirectPostJwt && !string.IsNullOrEmpty(responseUri) && redirectUri is null && (clientIdScheme is X509SanDnsScheme or VerifierAttestationScheme @@ -169,4 +170,4 @@ internal static AuthorizationRequest WithClientMetadata( this AuthorizationRequest authorizationRequest, ClientMetadata? clientMetadata) => authorizationRequest with { ClientMetadata = clientMetadata }; -} \ No newline at end of file +}