Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .dev/compose.openid4vc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: runtime-oid4vc-tests

services:
oid4vc-service:
image: ghcr.io/js-soft/openid4vc-service:3.0.1@sha256:17d35ee82a5c65c700e5b6f7922ea833717f1c16a515f60cf1ee7b36b524b32b
ports:
- "9000:9000"
platform: linux/amd64
volumes:
- ./oid4vc-service-config.json:/usr/app/config.json
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- connector
- eudiplo
networks:
- default

connector:
image: ghcr.io/nmshd/connector:7.4.0-openid4vc.2@sha256:d121f97ce2e4506a7ff58de0012b3445f6d0aeb8dd4d765c09da7f34d8a22b5b
environment:
CUSTOM_CONFIG_LOCATION: "/config.json"
transportLibrary__baseUrl: ${NMSHD_TEST_BASEURL}
transportLibrary__platformClientId: ${NMSHD_TEST_CLIENTID}
transportLibrary__platformClientSecret: ${NMSHD_TEST_CLIENTSECRET}
transportLibrary__addressGenerationHostnameOverride: ${NMSHD_TEST_ADDRESSGENERATIONHOSTNAMEOVERRIDE}
database__connectionString: mongodb://root:example@mongodb:27017
infrastructure__httpServer__authentication__apiKey__keys__default__key: aVeryCoolApiKeyWith30CharactersOr+
modules__autoAcceptPendingRelationships__enabled: true
modules__sync__enabled: true
modules__sync__interval: 1
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- mongodb
networks:
- default
- local-test-backbone

mongodb:
image: mongo@sha256:c23684919810f0341e58744987e4b1c510fb8becdae850217d2d04b6fa7605e7
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- default

eudiplo:
image: ghcr.io/openwallet-foundation-labs/eudiplo:3.1.2@sha256:0ea3a73d42a1eb10a6edc45e3289478b08b09064bd75563c503ed12be2ed2dc6
environment:
- PUBLIC_URL=http://localhost:3000
- MASTER_SECRET="OgwrDcgVQQ2yZwcFt7kPxQm3nUF+X3etF6MdLTstZAY="
- AUTH_CLIENT_ID="root"
- AUTH_CLIENT_SECRET="test"
- CONFIG_IMPORT=true
- CONFIG_FOLDER=/app/assets/config
- PORT=3000
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3000:3000"
volumes:
- ./eudiplo-assets:/app/assets/config

networks:
default:
name: runtime-oid4vc-tests-network
local-test-backbone:
name: local-test-backbone
external: true
8 changes: 8 additions & 0 deletions .dev/eudiplo-assets/test/certs/certificate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "f712261e-70aa-459d-af79-330c86bd0711",
"keyId": "c02bae13-e5a5-42fd-94bd-c6999f5e4b46",
"certUsageTypes": ["access", "signing", "statusList", "trustList"],
"crt": [
"-----BEGIN CERTIFICATE-----\nMIIBfzCCASWgAwIBAgIBATAKBggqhkjOPQQDAjAcMQswCQYDVQQGEwJERTENMAsG\nA1UEAxMEdGVzdDAeFw0yNjAzMDUxMTAxNTFaFw0yNzAzMDUxMTAxNTFaMBwxCzAJ\nBgNVBAYTAkRFMQ0wCwYDVQQDEwR0ZXN0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD\nQgAEdii3YD7um3gFaw2Rn/AD6g3SrxWGFAQNGjt74wUnCICKK0s6YGROFvybMhny\ncNfDg/n+egSxIemz9CT2OXeNf6NYMFYwFAYDVR0RBA0wC4IJbG9jYWxob3N0MA8G\nA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgKkMB0GA1UdDgQWBBQVPwb+HICl\n8AffEMHThMfTnRMljjAKBggqhkjOPQQDAgNIADBFAiEA0sP71bWw8XM9ts6EOoIH\nOBoUxWmDlqUGWDHjtH57KG0CIFMMlAGG4IqrZ1CJF1BuyhVU3ZEg4rMZp3GvX06K\nuR8r\n-----END CERTIFICATE-----"
]
}
5 changes: 5 additions & 0 deletions .dev/eudiplo-assets/test/clients/test-admin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"clientId": "test-admin",
"secret": "57c9cd444bf402b2cc1f5a0d2dafd3955bd9042c0372db17a4ede2d5fbda88e5",
"roles": ["clients:manage", "issuance:manage", "issuance:offer", "presentation:manage", "presentation:request"]
}
Binary file added .dev/eudiplo-assets/test/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions .dev/eudiplo-assets/test/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "test",
"description": "test tenant"
}
22 changes: 22 additions & 0 deletions .dev/eudiplo-assets/test/issuance/credentials/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "test",
"description": "test",
"config": {
"format": "dc+sd-jwt",
"display": [
{
"name": "test",
"description": "test",
"locale": "en-US",
"background_color": "#FFFFFF",
"text_color": "#000000",
"logo": { "uri": "logo.png" }
}
]
},
"disclosureFrame": { "_sd": ["givenName"] },
"vct": "test",
"keyBinding": true,
"statusManagement": false,
"lifeTime": 3600
}
13 changes: 13 additions & 0 deletions .dev/eudiplo-assets/test/issuance/issuance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"authServers": ["https://kc-openid4vc.is.enmeshed.eu/realms/enmeshed-openid4vci"],
"batchSize": 1,
"dPopRequired": false,
"display": [
{
"name": "test",
"locale": "en-US",
"logo": { "uri": "logo.png" }
}
],
"walletAttestationRequired": false
}
11 changes: 11 additions & 0 deletions .dev/eudiplo-assets/test/keys/key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "c02bae13-e5a5-42fd-94bd-c6999f5e4b46",
"key": {
"kty": "EC",
"x": "dii3YD7um3gFaw2Rn_AD6g3SrxWGFAQNGjt74wUnCIA",
"y": "iitLOmBkThb8mzIZ8nDXw4P5_noEsSHps_Qk9jl3jX8",
"crv": "P-256",
"d": "h_05VoTTqPlQsox6BHDwScXhD61ZoYWGD1Gpirk06N8",
"alg": "ES256"
}
}
15 changes: 15 additions & 0 deletions .dev/eudiplo-assets/test/presentation/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"id": "test",
"description": "test",
"dcql_query": {
"credentials": [
{
"id": "test",
"format": "dc+sd-jwt",
"meta": { "vct_values": ["test"] }
}
]
},
"accessCertId": "f712261e-70aa-459d-af79-330c86bd0711",
"lifeTime": 300
}
19 changes: 19 additions & 0 deletions .dev/oid4vc-service-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"port": 9000,
"baseUrl": "http://127.0.0.1:9000",
"mongodb": {
"host": "mongodb",
"port": 27017,
"user": "root",
"password": "example"
},
"connector": {
"baseUrl": "http://connector:80",
"apiKey": "aVeryCoolApiKeyWith30CharactersOr+"
},
"eudiplo": {
"baseUrl": "http://eudiplo:3000",
"clientId": "test-admin",
"clientSecret": "57c9cd444bf402b2cc1f5a0d2dafd3955bd9042c0372db17a4ede2d5fbda88e5"
}
}
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ jobs:
- uses: actions/checkout@v6
- name: Start Backbone
run: npm run start:backbone
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER_FOR_OID4VC_SERVICE_PULL }}
password: ${{ secrets.GHCR_PAT_FOR_OID4VC_SERVICE_PULL }}
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
Expand All @@ -141,6 +147,12 @@ jobs:
- uses: actions/checkout@v6
- name: Start Backbone
run: npm run start:backbone
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER_FOR_OID4VC_SERVICE_PULL }}
password: ${{ secrets.GHCR_PAT_FOR_OID4VC_SERVICE_PULL }}
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
Expand Down
Loading
Loading