Skip to content

Commit 076befe

Browse files
committed
test without filter
1 parent b5ed4da commit 076befe

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

wallet-core/src/main/java/eu/europa/ec/eudi/wallet/document/Constants.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ package eu.europa.ec.eudi.wallet.document
2525
object Constants {
2626

2727
// EU PID
28-
const val EU_PID_DOCTYPE = "eu.europa.ec.eudiw.pid.1"
29-
const val EU_PID_NAMESPACE = "eu.europa.ec.eudiw.pid.1"
28+
const val EU_PID_DOCTYPE = "eu.europa.ec.eudi.pid.1"
29+
const val EU_PID_NAMESPACE = "eu.europa.ec.eudi.pid.1"
3030

3131
// mDL
3232
const val MDL_DOCTYPE = "org.iso.18013.5.1.mDL"

wallet-core/src/main/java/eu/europa/ec/eudi/wallet/issue/openid4vci/DefaultOpenId4VciManager.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,17 @@ internal class DefaultOpenId4VciManager(
7676
ProofTypeFilter(config.proofTypes)
7777
)
7878

79-
val credentialConfigurationId =
80-
credentialIssuerMetadata.credentialConfigurationsSupported.filterValues { conf ->
81-
credentialConfigurationFilter(conf)
82-
}.keys.takeUnless { it.isEmpty() } ?: throw IllegalStateException("No suitable configuration found")
79+
// val credentialConfigurationId =
80+
// credentialIssuerMetadata.credentialConfigurationsSupported.filterValues { conf ->
81+
// credentialConfigurationFilter(conf)
82+
// }.keys.takeUnless { it.isEmpty() } ?: throw IllegalStateException("No suitable configuration found")
8383

84+
85+
val credentialConfigurationId = listOf(
86+
credentialIssuerMetadata.credentialConfigurationsSupported.keys.toList()[3],
87+
credentialIssuerMetadata.credentialConfigurationsSupported.keys.toList()[4]
88+
)
89+
8490
val credentialOffer = CredentialOffer(
8591
credentialIssuerIdentifier = credentialIssuerId,
8692
credentialIssuerMetadata = credentialIssuerMetadata,

0 commit comments

Comments
 (0)