Run with Local Services
The first step here is to have all three services running locally on your machine. You can follow these Repositories for further instructions:
After this, and assuming you are now running everything locally, you need to change the contents of the ConfigWalletCoreImpl file, from:
override val vciConfig: List<OpenId4VciManager.Config>
get() = listOf(
OpenId4VciManager.Config.Builder()
.withIssuerUrl(issuerUrl = "https://ec.dev.issuer.eudiw.dev")
.withClientId(clientId = "wallet-dev")
.withAuthFlowRedirectionURI(BuildConfig.ISSUE_AUTHORIZATION_DEEPLINK)
.withParUsage(OpenId4VciManager.Config.ParUsage.IF_SUPPORTED)
.withDPoPUsage(OpenId4VciManager.Config.DPoPUsage.IfSupported())
.build()
)
override val vciConfig: List<OpenId4VciManager.Config>
get() = listOf(
OpenId4VciManager.Config.Builder()
.withIssuerUrl(issuerUrl = "local_IP_address_of_issuer")
.withClientId(clientId = "wallet-dev")
.withAuthFlowRedirectionURI(BuildConfig.ISSUE_AUTHORIZATION_DEEPLINK)
.withParUsage(OpenId4VciManager.Config.ParUsage.IF_SUPPORTED)
.withDPoPUsage(OpenId4VciManager.Config.DPoPUsage.IfSupported())
.build()
)
for example:
override val vciConfig: List<OpenId4VciManager.Config>
get() = listOf(
OpenId4VciManager.Config.Builder()
.withIssuerUrl(issuerUrl = "https://10.0.2.2")
.withClientId(clientId = "wallet-dev")
.withAuthFlowRedirectionURI(BuildConfig.ISSUE_AUTHORIZATION_DEEPLINK)
.withParUsage(OpenId4VciManager.Config.ParUsage.IF_SUPPORTED)
.withDPoPUsage(OpenId4VciManager.Config.DPoPUsage.IfSupported())
.build()
)