From 4e445eeea630a40a1cbc607e8b6e8a3462fb6b4a Mon Sep 17 00:00:00 2001 From: Joseph Milan Date: Fri, 26 Jul 2024 21:15:54 +0530 Subject: [PATCH] Fix #36: Support value for reference in dynamic credential request --- Sources/eudiWalletOidcIos/Service/IssueService.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/eudiWalletOidcIos/Service/IssueService.swift b/Sources/eudiWalletOidcIos/Service/IssueService.swift index 2aed917..63225bf 100644 --- a/Sources/eudiWalletOidcIos/Service/IssueService.swift +++ b/Sources/eudiWalletOidcIos/Service/IssueService.swift @@ -169,7 +169,10 @@ public class IssueService: NSObject, IssueServiceProtocol { } - if responseUrl.contains("code=") || responseUrl.contains("error=") || responseUrl.contains("presentation_definition="){ + if responseUrl.contains("code=") || + responseUrl.contains("error=") || + responseUrl.contains("presentation_definition=") || + (responseUrl.contains("request_uri=") && !responseUrl.contains("response_type=") && !responseUrl.contains("state=")){ return responseUrl } else { // if 'code' is not present