Skip to content

Commit 250cd56

Browse files
authored
Merge pull request eu-digital-identity-wallet#441 from niscy-eudiw/feature/core_updates
Support for VP v1, New RQES
2 parents bcb6acc + 8e012a4 commit 250cd56

File tree

6 files changed

+27
-41
lines changed

6 files changed

+27
-41
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The EUDIW project provides, through this repository, an Android app. Please refe
3535

3636
The app consumes the SDK called EUDIW Wallet core [Wallet core](https://github.com/eu-digital-identity-wallet/eudi-lib-android-wallet-core) and a list of available libraries to facilitate remote presentation, proximity, and issuing test/demo functionality following the specification of the [ARF](https://github.com/eu-digital-identity-wallet/eudi-doc-architecture-and-reference-framework), including:
3737

38-
- OpenID4VP - draft 24 (remote presentation), presentation exchange v2.0, DCQL
38+
- OpenID4VP - v1 (remote presentation), DCQL
3939

4040
- ISO18013-5 (proximity presentation),
4141

business-logic/src/dev/java/eu/europa/ec/businesslogic/config/RQESConfigImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class RQESConfigImpl(val context: Context) : EudiRQESUiConfig {
3232
get() = listOf(
3333
QtspData(
3434
name = "Wallet-Centric",
35-
endpoint = "https://walletcentric.signer.eudiw.dev/csc/v2".toUriOrEmpty(),
35+
endpoint = "https://walletcentric.signer.dev.eudiw.dev/csc/v2".toUriOrEmpty(),
3636
tsaUrl = "https://timestamp.sectigo.com/qualified",
3737
clientId = "wallet-client",
3838
clientSecret = "somesecret2",

core-logic/src/demo/java/eu/europa/ec/corelogic/config/WalletCoreConfigImpl.kt

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import eu.europa.ec.corelogic.BuildConfig
2121
import eu.europa.ec.eudi.wallet.EudiWalletConfig
2222
import eu.europa.ec.eudi.wallet.issue.openid4vci.OpenId4VciManager
2323
import eu.europa.ec.eudi.wallet.transfer.openId4vp.ClientIdScheme
24-
import eu.europa.ec.eudi.wallet.transfer.openId4vp.EncryptionAlgorithm
25-
import eu.europa.ec.eudi.wallet.transfer.openId4vp.EncryptionMethod
2624
import eu.europa.ec.eudi.wallet.transfer.openId4vp.Format
2725
import eu.europa.ec.resourceslogic.R
2826

@@ -48,17 +46,12 @@ internal class WalletCoreConfigImpl(
4846
useStrongBoxForKeys = true
4947
)
5048
configureOpenId4Vp {
51-
withEncryptionAlgorithms(listOf(EncryptionAlgorithm.ECDH_ES))
52-
withEncryptionMethods(
49+
withClientIdSchemes(
5350
listOf(
54-
EncryptionMethod.A128CBC_HS256,
55-
EncryptionMethod.A256GCM
51+
ClientIdScheme.X509SanDns,
52+
ClientIdScheme.X509Hash
5653
)
5754
)
58-
59-
withClientIdSchemes(
60-
listOf(ClientIdScheme.X509SanDns)
61-
)
6255
withSchemes(
6356
listOf(
6457
BuildConfig.OPENID4VP_SCHEME,
@@ -67,7 +60,7 @@ internal class WalletCoreConfigImpl(
6760
)
6861
)
6962
withFormats(
70-
Format.MsoMdoc, Format.SdJwtVc.ES256
63+
Format.MsoMdoc.ES256, Format.SdJwtVc.ES256
7164
)
7265
}
7366

core-logic/src/dev/java/eu/europa/ec/corelogic/config/WalletCoreConfigImpl.kt

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import eu.europa.ec.corelogic.BuildConfig
2121
import eu.europa.ec.eudi.wallet.EudiWalletConfig
2222
import eu.europa.ec.eudi.wallet.issue.openid4vci.OpenId4VciManager
2323
import eu.europa.ec.eudi.wallet.transfer.openId4vp.ClientIdScheme
24-
import eu.europa.ec.eudi.wallet.transfer.openId4vp.EncryptionAlgorithm
25-
import eu.europa.ec.eudi.wallet.transfer.openId4vp.EncryptionMethod
2624
import eu.europa.ec.eudi.wallet.transfer.openId4vp.Format
2725
import eu.europa.ec.resourceslogic.R
2826

@@ -48,17 +46,12 @@ internal class WalletCoreConfigImpl(
4846
useStrongBoxForKeys = true
4947
)
5048
configureOpenId4Vp {
51-
withEncryptionAlgorithms(listOf(EncryptionAlgorithm.ECDH_ES))
52-
withEncryptionMethods(
49+
withClientIdSchemes(
5350
listOf(
54-
EncryptionMethod.A128CBC_HS256,
55-
EncryptionMethod.A256GCM
51+
ClientIdScheme.X509SanDns,
52+
ClientIdScheme.X509Hash
5653
)
5754
)
58-
59-
withClientIdSchemes(
60-
listOf(ClientIdScheme.X509SanDns)
61-
)
6255
withSchemes(
6356
listOf(
6457
BuildConfig.OPENID4VP_SCHEME,
@@ -67,7 +60,7 @@ internal class WalletCoreConfigImpl(
6760
)
6861
)
6962
withFormats(
70-
Format.MsoMdoc, Format.SdJwtVc.ES256
63+
Format.MsoMdoc.ES256, Format.SdJwtVc.ES256
7164
)
7265
}
7366

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ slf4j = "2.0.17"
5454
gson = "2.13.2"
5555
googlePhoneNumber = "9.0.14"
5656
zxing = "3.5.3"
57-
eudiWalletCore = "0.19.0"
57+
eudiWalletCore = "0.20.0-SNAPSHOT"
5858
cameraCore = "1.5.0"
5959
owaspDependencyCheck = "12.1.3"
6060
material3 = "1.3.2"
@@ -63,7 +63,7 @@ sonar = "6.3.1.5724"
6363
baselineprofile = "1.4.1"
6464
timber = "5.0.1"
6565
treessence = "1.1.2"
66-
rqesUiSDK = "0.3.1"
66+
rqesUiSDK = "0.3.2"
6767
androidxRoom = "2.8.0"
6868
cloudy = "0.2.7"
6969

wiki/configuration.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ interface WalletCoreConfig {
2727
You can configure the *EudiWalletConfig* per flavor. You can find both implementations inside the core-logic module at src/demo/config/WalletCoreConfigImpl and src/dev/config/WalletCoreConfigImpl
2828

2929
```Kotlin
30-
private companion object {
31-
const val VCI_ISSUER_URL = "https://issuer.eudiw.dev"
32-
const val VCI_CLIENT_ID = "wallet-demo"
33-
const val AUTHENTICATION_REQUIRED = false
34-
}
30+
private companion object {
31+
const val VCI_ISSUER_URL = "https://issuer.eudiw.dev"
32+
const val VCI_CLIENT_ID = "wallet-demo"
33+
const val AUTHENTICATION_REQUIRED = false
34+
}
3535
```
3636

3737
2. Trusted certificates
@@ -63,7 +63,7 @@ const val OPENID4VP_VERIFIER_API_URI = "your_verifier_url"
6363
const val OPENID4VP_VERIFIER_LEGAL_NAME = "your_verifier_legal_name"
6464
const val OPENID4VP_VERIFIER_CLIENT_ID = "your_verifier_client_id"
6565

66-
.openId4VpConfig {
66+
configureOpenId4Vp {
6767
withClientIdSchemes(
6868
listOf(
6969
ClientIdScheme.Preregistered(
@@ -277,15 +277,15 @@ enum class DeepLinkType(val schemas: List<String>, val host: String? = null) {
277277
In the case of an additive change regarding OpenID4VP, you also need to update the *EudiWalletConfig* for each flavor inside the core-logic module.
278278

279279
```Kotlin
280-
.openId4VpConfig {
281-
withScheme(
282-
listOf(
283-
BuildConfig.OPENID4VP_SCHEME,
284-
BuildConfig.EUDI_OPENID4VP_SCHEME,
285-
BuildConfig.MDOC_OPENID4VP_SCHEME,
286-
BuildConfig.YOUR_OWN_OPENID4VP_SCHEME
287-
)
288-
)
280+
configureOpenId4Vp {
281+
withSchemes(
282+
listOf(
283+
BuildConfig.OPENID4VP_SCHEME,
284+
BuildConfig.EUDI_OPENID4VP_SCHEME,
285+
BuildConfig.MDOC_OPENID4VP_SCHEME,
286+
BuildConfig.YOUR_OWN_OPENID4VP_SCHEME
287+
)
288+
)
289289
}
290290
```
291291

0 commit comments

Comments
 (0)