Skip to content

Commit

Permalink
Fix #36: Support value for reference in dynamic credential request
Browse files Browse the repository at this point in the history
  • Loading branch information
josmilan committed Jul 30, 2024
1 parent 69ce1e4 commit 4e445ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/eudiWalletOidcIos/Service/IssueService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e445ee

Please sign in to comment.