From 5d037f3efd21b098b312a3715d0f69fb5b6618c3 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Tue, 6 Jan 2026 16:31:59 +0100 Subject: [PATCH 1/2] GF test 2026 policy --- .gitignore | 2 + .../policy_gf-hackathon-2025_dev.json | 0 .../test/policy_gf-hackathon-2025_test.json | 0 gf-test-2026/test/policy.json | 144 ++++++++++++++++++ 4 files changed, 146 insertions(+) create mode 100644 .gitignore rename {oauth-presentation-definitions => gf-hackathon-2025}/ontwikkel/policy_gf-hackathon-2025_dev.json (100%) rename {oauth-presentation-definitions => gf-hackathon-2025}/test/policy_gf-hackathon-2025_test.json (100%) create mode 100644 gf-test-2026/test/policy.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..090a1f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +.DS_Store diff --git a/oauth-presentation-definitions/ontwikkel/policy_gf-hackathon-2025_dev.json b/gf-hackathon-2025/ontwikkel/policy_gf-hackathon-2025_dev.json similarity index 100% rename from oauth-presentation-definitions/ontwikkel/policy_gf-hackathon-2025_dev.json rename to gf-hackathon-2025/ontwikkel/policy_gf-hackathon-2025_dev.json diff --git a/oauth-presentation-definitions/test/policy_gf-hackathon-2025_test.json b/gf-hackathon-2025/test/policy_gf-hackathon-2025_test.json similarity index 100% rename from oauth-presentation-definitions/test/policy_gf-hackathon-2025_test.json rename to gf-hackathon-2025/test/policy_gf-hackathon-2025_test.json diff --git a/gf-test-2026/test/policy.json b/gf-test-2026/test/policy.json new file mode 100644 index 0000000..adb043a --- /dev/null +++ b/gf-test-2026/test/policy.json @@ -0,0 +1,144 @@ +{ + "eOverdracht-sender": { + "organization": { + "format": { + "ldp_vc": { + "proof_type": [ + "JsonWebSignature2020" + ] + }, + "jwt_vc": { + "alg": [ + "PS256" + ] + }, + "jwt_vp": { + "alg": [ + "ES256" + ] + } + }, + "id": "pd_any_care_organization", + "name": "Care organization", + "purpose": "Finding a care organization", + "input_descriptors": [ + { + "id": "id_uzicert_uracredential", + "name": "Care organization identity from fake UZI-server certificate", + "purpose": "Finding a care organization for authorizing access to medical metadata.", + "constraints": { + "fields": [ + { + "path": ["$.type"], + "filter": { + "type": "string", + "const": "X509Credential" + } + }, + { + "id": "organization_id", + "path": ["$.credentialSubject[0].id", "$.credentialSubject.id"], + "filter": { + "type": "string", + "pattern": "^did:web:" + } + }, + { + "id": "organization_name", + "path": [ + "$.credentialSubject[0].subject.O", + "$.credentialSubject.subject.O" + ], + "filter": { + "type": "string" + } + }, + { + "id": "organization_ura", + "path": [ + "$.credentialSubject[0].san.otherName", + "$.credentialSubject.san.otherName" + ], + "filter": { + "type": "string", + "pattern": "^[0-9.]+-\\d+-\\d+-S-(\\d+)-00\\.000-\\d+$" + } + } + ] + } + } + ] + } + }, + "eOverdracht-receiver": { + "organization": { + "format": { + "ldp_vc": { + "proof_type": [ + "JsonWebSignature2020" + ] + }, + "jwt_vc": { + "alg": [ + "PS256" + ] + }, + "jwt_vp": { + "alg": [ + "ES256" + ] + } + }, + "id": "pd_any_care_organization", + "name": "Care organization", + "purpose": "Finding a care organization", + "input_descriptors": [ + { + "id": "id_uzicert_uracredential", + "name": "Care organization identity from fake UZI-server certificate", + "purpose": "Finding a care organization for authorizing access to medical metadata.", + "constraints": { + "fields": [ + { + "path": ["$.type"], + "filter": { + "type": "string", + "const": "X509Credential" + } + }, + { + "id": "organization_id", + "path": ["$.credentialSubject[0].id", "$.credentialSubject.id"], + "filter": { + "type": "string", + "pattern": "^did:web:" + } + }, + { + "id": "organization_name", + "path": [ + "$.credentialSubject[0].subject.O", + "$.credentialSubject.subject.O" + ], + "filter": { + "type": "string" + } + }, + { + "id": "organization_ura", + "path": [ + "$.credentialSubject[0].san.otherName", + "$.credentialSubject.san.otherName" + ], + "filter": { + "type": "string", + "pattern": "^[0-9.]+-\\d+-\\d+-S-(\\d+)-00\\.000-\\d+$" + } + } + ] + } + } + ] + } + } +} \ No newline at end of file From 1032155362e45c733315858154bda34046475613 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Tue, 6 Jan 2026 16:32:20 +0100 Subject: [PATCH 2/2] rename --- gf-test-2026/test/{policy.json => eOverdracht-policy.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename gf-test-2026/test/{policy.json => eOverdracht-policy.json} (100%) diff --git a/gf-test-2026/test/policy.json b/gf-test-2026/test/eOverdracht-policy.json similarity index 100% rename from gf-test-2026/test/policy.json rename to gf-test-2026/test/eOverdracht-policy.json