Skip to content

Commit

Permalink
Add Discovery Service to dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Oct 4, 2024
1 parent 290f073 commit a2062f0
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
78 changes: 78 additions & 0 deletions deploy/policy/dev_eOverdracht2023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"test": {
"organization": {
"format": {
"ldp_vc": {
"proof_type": [
"JsonWebSignature2020"
]
},
"jwt_vc": {
"alg": [
"ES256"
]
},
"ldp_vp": {
"proof_type": [
"JsonWebSignature2020"
]
},
"jwt_vp": {
"alg": [
"ES256"
]
}
},
"id": "pd_any_care_organization_with_employee",
"name": "Care organization with employee",
"purpose": "Finding a care organization with logged in user for authorizing access to medical metadata",
"input_descriptors": [
{
"id": "id_nuts_ura_credential",
"name": "Care organization",
"purpose": "Finding a care organization for authorizing access to medical metadata.",
"constraints": {
"fields": [
{
"path": [
"$.type"
],
"filter": {
"type": "string",
"const": "NutsUraCredential"
}
},
{
"id": "organization_name",
"path": [
"$.credentialSubject.organization.name"
],
"filter": {
"type": "string"
}
},
{
"id": "organization_ura",
"path": [
"$.credentialSubject.organization.ura"
],
"filter": {
"type": "string"
}
},
{
"id": "organization_city",
"path": [
"$.credentialSubject.organization.city"
],
"filter": {
"type": "string"
}
}
]
}
}
]
}
}
}
5 changes: 4 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ services:
- "8080:8080"
volumes:
- ./deploy/discovery:/opt/nuts/discovery:ro
- ./deploy/policy:/opt/nuts/policy:ro
environment:
NUTS_CRYPTO_STORAGE: fs
NUTS_HTTP_INTERNAL_ADDRESS: :8081
NUTS_URL: https://nuts.nl
NUTS_URL: http://localhost:8080
NUTS_STRICTMODE: false
NUTS_DISCOVERY_DEFINITIONS_DIRECTORY: /opt/nuts/discovery
NUTS_POLICY_DIRECTORY: /opt/nuts/policy
# nuts-admin:
# build:
# context: .
Expand Down

0 comments on commit a2062f0

Please sign in to comment.