From 6a488e22dbd2da03d4408ec40de3e69fc999c8b1 Mon Sep 17 00:00:00 2001 From: kenkosmowski Date: Thu, 22 May 2025 13:43:17 +0200 Subject: [PATCH] fix malformed query strings Signed-off-by: kenkosmowski --- .../Oid4Vci/Implementations/Oid4VciClientService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/Oid4VciClientService.cs b/src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/Oid4VciClientService.cs index cd0235ff..71fbe8c9 100644 --- a/src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/Oid4VciClientService.cs +++ b/src/WalletFramework.Oid4Vc/Oid4Vci/Implementations/Oid4VciClientService.cs @@ -149,7 +149,7 @@ from issState in code.IssuerState var authServerMetadata = await FetchAuthorizationServerMetadataAsync(issuerMetadata, offer.CredentialOffer); var authorizationRequestUri = authServerMetadata.PushedAuthorizationRequestEndpoint.IsNullOrEmpty() - ? new Uri(authServerMetadata.AuthorizationEndpoint + "?" + vciAuthorizationRequest.ToQueryString()) + ? new Uri(authServerMetadata.AuthorizationEndpoint + vciAuthorizationRequest.ToQueryString()) : await GetRequestUriUsingPushedAuthorizationRequest(authServerMetadata, vciAuthorizationRequest); var authorizationData = new AuthorizationData( @@ -211,7 +211,7 @@ public async Task InitiateAuthFlow(Uri uri, ClientOptions clientOptions, Op null); var authorizationRequestUri = authServerMetadata.PushedAuthorizationRequestEndpoint.IsNullOrEmpty() - ? new Uri(authServerMetadata.AuthorizationEndpoint + "?" + vciAuthorizationRequest.ToQueryString()) + ? new Uri(authServerMetadata.AuthorizationEndpoint + vciAuthorizationRequest.ToQueryString()) : await GetRequestUriUsingPushedAuthorizationRequest(authServerMetadata, vciAuthorizationRequest); //TODO: Select multiple configurationIds