Skip to content

Commit

Permalink
Merge pull request #152 from niscy-eudiw/feature/readme_updates
Browse files Browse the repository at this point in the history
Readme updates + fixes client_id for when it's running locally.
  • Loading branch information
stzouvaras authored Jul 22, 2024
2 parents 30334bd + 635d162 commit 6f37903
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal class WalletCoreConfigImpl(
private companion object {
const val OPENID4VP_VERIFIER_API_URI = "https://verifier.eudiw.dev"
const val OPENID4VP_VERIFIER_LEGAL_NAME = "EUDI Remote Verifier"
const val OPENID4VP_VERIFIER_CLIENT_ID = "wallet-dev"
const val OPENID4VP_VERIFIER_CLIENT_ID = "Verifier"
const val VCI_ISSUER_URL = "https://issuer.eudiw.dev"
const val VCI_CLIENT_ID = "wallet-dev"
const val AUTHENTICATION_REQUIRED = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal class WalletCoreConfigImpl(
private companion object {
const val OPENID4VP_VERIFIER_API_URI = "https://dev.verifier.eudiw.dev"
const val OPENID4VP_VERIFIER_LEGAL_NAME = "EUDI Remote Verifier"
const val OPENID4VP_VERIFIER_CLIENT_ID = "wallet-dev"
const val OPENID4VP_VERIFIER_CLIENT_ID = "Verifier"
const val VCI_ISSUER_URL = "https://dev.issuer.eudiw.dev"
const val VCI_CLIENT_ID = "wallet-dev"
const val AUTHENTICATION_REQUIRED = false
Expand Down
52 changes: 48 additions & 4 deletions wiki/how_to_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ These are the contents of the ConfigWalletCoreImpl file (dev flavor) and you don
private companion object {
const val OPENID4VP_VERIFIER_API_URI = "https://dev.verifier.eudiw.dev"
const val OPENID4VP_VERIFIER_LEGAL_NAME = "EUDI Remote Verifier"
const val OPENID4VP_VERIFIER_CLIENT_ID = "wallet-dev"
const val OPENID4VP_VERIFIER_CLIENT_ID = "Verifier"
const val VCI_ISSUER_URL = "https://dev.issuer.eudiw.dev"
const val VCI_CLIENT_ID = "wallet-dev"
const val AUTHENTICATION_REQUIRED = false
Expand All @@ -51,9 +51,53 @@ private companion object {
### Running 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:
* [Issuer](#https://github.com/eu-digital-identity-wallet/eudi-srv-web-issuing-eudiw-py)
* [Web Verifier UI](#https://github.com/eu-digital-identity-wallet/eudi-web-verifier)
* [Web Verifier Endpoint](#https://github.com/eu-digital-identity-wallet/eudi-srv-web-verifier-endpoint-23220-4-kt)
* [Issuer](https://github.com/eu-digital-identity-wallet/eudi-srv-web-issuing-eudiw-py)
* [Web Verifier UI](https://github.com/eu-digital-identity-wallet/eudi-web-verifier)
* [Web Verifier Endpoint](https://github.com/eu-digital-identity-wallet/eudi-srv-web-verifier-endpoint-23220-4-kt)


After this, and assuming you are now running everything locally,
you need to change the contents of the ConfigWalletCoreImpl file, from:
```
private companion object {
const val OPENID4VP_VERIFIER_API_URI = "https://dev.verifier.eudiw.dev"
const val OPENID4VP_VERIFIER_LEGAL_NAME = "EUDI Remote Verifier"
const val OPENID4VP_VERIFIER_CLIENT_ID = "Verifier"
const val VCI_ISSUER_URL = "https://dev.issuer.eudiw.dev"
const val VCI_CLIENT_ID = "wallet-dev"
const val AUTHENTICATION_REQUIRED = false
}
```
into something like this:
```
private companion object {
const val OPENID4VP_VERIFIER_API_URI = "local_IP_address_of_verifier_endpoint"
const val OPENID4VP_VERIFIER_LEGAL_NAME = "EUDI Remote Verifier"
const val OPENID4VP_VERIFIER_CLIENT_ID = "Verifier"
const val VCI_ISSUER_URL = "local_IP_address_of_issuer"
const val VCI_CLIENT_ID = "wallet-dev"
const val AUTHENTICATION_REQUIRED = false
}
```

for example:
```
private companion object {
const val OPENID4VP_VERIFIER_API_URI = "http://192.168.1.1:8080"
const val OPENID4VP_VERIFIER_LEGAL_NAME = "EUDI Remote Verifier"
const val OPENID4VP_VERIFIER_CLIENT_ID = "Verifier"
const val VCI_ISSUER_URL = "https://192.168.1.1:5000"
const val VCI_CLIENT_ID = "wallet-dev"
const val AUTHENTICATION_REQUIRED = false
}
```

Finally, you have to also change the content of ***network_security_config.xml*** file and allow HTTP traffic, to this:
```
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
```

## How to work with self-signed certificates

Expand Down

0 comments on commit 6f37903

Please sign in to comment.