fix env example

This commit is contained in:
Cayo Puigdefabregas 2023-09-28 08:37:41 +02:00
commit cb0c7f1cb6
5 changed files with 29 additions and 5 deletions

View file

@ -115,6 +115,13 @@
<a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}">{{ device_abstract.chid }}</a> <a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}">{{ device_abstract.chid }}</a>
</div> </div>
</div> </div>
<div class="row">
<div class="col">
Manufacturer DPP:
</div>
<div class="col">
</div>
</div>
<div class="row"> <div class="row">
<div class="col"> <div class="col">
Usody Identifier (DHID) Usody Identifier (DHID)

View file

@ -147,6 +147,13 @@
<a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}">{{ device_abstract.chid|truncate(20, True, '...') }}</a> <a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}">{{ device_abstract.chid|truncate(20, True, '...') }}</a>
</div> </div>
</div> </div>
<div class="row">
<div class="col">
Manufacturer DPP:
</div>
<div class="col">
</div>
</div>
<div class="row"> <div class="row">
<div class="col"> <div class="col">
Last Digital Passport (Last Dpp): Last Digital Passport (Last Dpp):

View file

@ -147,6 +147,13 @@
<a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}"><small class="text-muted">{{ device_abstract.chid }}</small></a> <a href="{{ url_for('did.did', id_dpp=device_abstract.chid) }}"><small class="text-muted">{{ device_abstract.chid }}</small></a>
</div> </div>
</div> </div>
<div class="row">
<div class="col">
Manufacturer DPP:
</div>
<div class="col">
</div>
</div>
{% if last_dpp %} {% if last_dpp %}
<div class="row"> <div class="row">
<div class="col"> <div class="col">

View file

@ -172,6 +172,7 @@ class DidView(View):
'dpp': self.id_dpp, 'dpp': self.id_dpp,
'algorithm': "sha3_256", 'algorithm': "sha3_256",
'components': components, 'components': components,
'manufacturer DPP': '',
} }
result = { result = {
'@context': ['https://ereuse.org/dpp0.json'], '@context': ['https://ereuse.org/dpp0.json'],
@ -198,6 +199,7 @@ class DidView(View):
'dpp': d.key, 'dpp': d.key,
'document': d.snapshot.json_hw, 'document': d.snapshot.json_hw,
'algorithm': "sha3_256", 'algorithm': "sha3_256",
'manufacturer DPP': '',
} }
dpps.append(rr) dpps.append(rr)
return { return {

View file

@ -1,7 +1,8 @@
# Please fill in these three variables # Please fill in these three variables
API_DLT='{ONE_URL}' API_DLT='http://$IP_API_DLT'
API_DLT_TOKEN='{ONE_TOKEN}' API_DLT_TOKEN=$TOKEN
API_RESOLVER='{ONE_URL}' API_RESOLVER='http://$IP_API_RESOLVER'
ID_FEDERATED='DH12'
# Database Variables # Database Variables
DB_USER='dhub' DB_USER='dhub'
@ -27,8 +28,8 @@ HOST='localhost'
EMAIL_DEMO='user@example.com' EMAIL_DEMO='user@example.com'
PASSWORD_DEMO='1234' PASSWORD_DEMO='1234'
JWT_PASS='7KU4ZzsEfe' JWT_PASS='aaaa'
SECRET_KEY='ffa96bac894ccaa070c23dfe18fd900eda2eebcbd5dac8b34db9b54ecec81501' SECRET_KEY='aaaa'
# important to import snapshots (step 15) # important to import snapshots (step 15)
# rel path starts with ./ # rel path starts with ./