Skip to content

Commit

Permalink
Fix #48 - Support value by reference in dynamic credential request
Browse files Browse the repository at this point in the history
  • Loading branch information
josmilan committed Jul 29, 2024
1 parent 4dba4ba commit 76b78d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.google.gson.annotations.SerializedName
data class PresentationDefinition(

@SerializedName("id") var id: String? = null,
@SerializedName("name") var name: String? = null,
@SerializedName("format") var format: Map<String, Jwt>? = mapOf(),
@SerializedName("input_descriptors") var inputDescriptors: ArrayList<InputDescriptors>? = arrayListOf()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,15 @@ class IssueService : IssueServiceInterface {
null
}



return if(location != null && Uri.parse(location).getQueryParameter("error") != null) {
location
}else if (location != null && Uri.parse(location).getQueryParameter("code") != null
|| Uri.parse(location).getQueryParameter("presentation_definition") != null
|| (Uri.parse(location).getQueryParameter("request_uri") != null &&
Uri.parse(location).getQueryParameter("response_type") == null &&
Uri.parse(location).getQueryParameter("state") == null)
) {
location
} else {
Expand Down

0 comments on commit 76b78d9

Please sign in to comment.