diff --git a/ereuse_devicehub/modules/did/templates/anonymous.html b/ereuse_devicehub/modules/did/templates/anonymous.html index a154468c..d0c03229 100644 --- a/ereuse_devicehub/modules/did/templates/anonymous.html +++ b/ereuse_devicehub/modules/did/templates/anonymous.html @@ -115,6 +115,13 @@ {{ device_abstract.chid }} +
+
+ Manufacturer DPP: +
+
+
+
Usody Identifier (DHID) diff --git a/ereuse_devicehub/modules/did/templates/operator.html b/ereuse_devicehub/modules/did/templates/operator.html index 797c7cd6..d0528a87 100644 --- a/ereuse_devicehub/modules/did/templates/operator.html +++ b/ereuse_devicehub/modules/did/templates/operator.html @@ -147,6 +147,13 @@ {{ device_abstract.chid|truncate(20, True, '...') }}
+
+
+ Manufacturer DPP: +
+
+
+
Last Digital Passport (Last Dpp): diff --git a/ereuse_devicehub/modules/did/templates/verifier.html b/ereuse_devicehub/modules/did/templates/verifier.html index ac0e17b9..6e377097 100644 --- a/ereuse_devicehub/modules/did/templates/verifier.html +++ b/ereuse_devicehub/modules/did/templates/verifier.html @@ -147,6 +147,13 @@ {{ device_abstract.chid }}
+
+
+ Manufacturer DPP: +
+
+
+
{% if last_dpp %}
diff --git a/ereuse_devicehub/modules/did/views.py b/ereuse_devicehub/modules/did/views.py index 6d661019..6ebf55a7 100644 --- a/ereuse_devicehub/modules/did/views.py +++ b/ereuse_devicehub/modules/did/views.py @@ -172,6 +172,7 @@ class DidView(View): 'dpp': self.id_dpp, 'algorithm': "sha3_256", 'components': components, + 'manufacturer DPP': '', } result = { '@context': ['https://ereuse.org/dpp0.json'], @@ -198,6 +199,7 @@ class DidView(View): 'dpp': d.key, 'document': d.snapshot.json_hw, 'algorithm': "sha3_256", + 'manufacturer DPP': '', } dpps.append(rr) return { diff --git a/examples/env.example b/examples/env.example index eacd34a6..1df25bbb 100644 --- a/examples/env.example +++ b/examples/env.example @@ -1,7 +1,8 @@ # Please fill in these three variables -API_DLT='{ONE_URL}' -API_DLT_TOKEN='{ONE_TOKEN}' -API_RESOLVER='{ONE_URL}' +API_DLT='http://$IP_API_DLT' +API_DLT_TOKEN=$TOKEN +API_RESOLVER='http://$IP_API_RESOLVER' +ID_FEDERATED='DH12' # Database Variables DB_USER='dhub' @@ -27,8 +28,8 @@ HOST='localhost' EMAIL_DEMO='user@example.com' PASSWORD_DEMO='1234' -JWT_PASS='7KU4ZzsEfe' -SECRET_KEY='ffa96bac894ccaa070c23dfe18fd900eda2eebcbd5dac8b34db9b54ecec81501' +JWT_PASS='aaaa' +SECRET_KEY='aaaa' # important to import snapshots (step 15) # rel path starts with ./