Skip to content

Commit 907bbad

Browse files
Phil91evegufy
andauthored
docs: add documentation for initial credential creation (eclipse-tractusx#221)
Co-authored-by: Evelyn Gurschler <[email protected]> Reviewed-by: Evelyn Gurschler <[email protected]> Refs: eclipse-tractusx#206
1 parent 1e7c65b commit 907bbad

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
lines changed

charts/ssi-credential-issuer/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
This helm chart installs the Catena-X SSI Credential Issuer application.
44

5-
For further information please refer to [Technical Documentation](./docs/technical-documentation).
5+
For further information please refer to [Technical Documentation](/docs/technical-documentation).
6+
7+
For information about the initial credential creation for the Operator, please refer to [initial credential setup](/docs/technical-documentation/operator-credential-creation/initial-credential-setup.md)
68

79
The referenced container images are for demonstration purposes only.
810

charts/ssi-credential-issuer/README.md.gotmpl

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
This helm chart installs the Catena-X SSI Credential Issuer application.
44

5-
For further information please refer to [Technical Documentation](./docs/technical-documentation).
5+
For further information please refer to [Technical Documentation](/docs/technical-documentation).
6+
7+
For information about the initial credential creation for the Operator, please refer to [initial credential setup](/docs/technical-documentation/operator-credential-creation/initial-credential-setup.md)
68

79
The referenced container images are for demonstration purposes only.
810

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Initial Credential Setup
2+
3+
After the initial wallet creation which is executed by the portal the process will create the bpn and membership credential.
4+
5+
The portal will request a bpn credential via the endpoint `POST: api/issuer/bpn` which will create a process and a process step. The process will currently fail at step 4 since the issuer wallet is the same as the holder wallet. This will be fixed in the future. For now you can execute the following query to resolve the issue
6+
7+
```sql
8+
9+
SELECT process_id
10+
FROM issuer.company_ssi_details
11+
where bpnl = 'operator bpn'
12+
and verified_credential_type_id = 7
13+
14+
```
15+
16+
take the process id and insert it into the following query
17+
18+
```sql
19+
20+
UPDATE issuer.process_steps
21+
SET process_step_status_id=2
22+
WHERE process_step_type_id = 4 and process_step_status_id = 4;
23+
24+
INSERT INTO issuer.process_steps(id, process_step_type_id, process_step_status_id, process_id, date_created, date_last_changed, message)
25+
VALUES ('8ddd7518-4532-409e-920a-c2b5029408a7', 5, 1, 'your process id', now(), null, null);
26+
27+
```
28+
29+
After that the issuer component will do the callback to the portal with the successfully created bpn credential. The portal will than request the creation of the membership credential via `POST: api/issuer/membership`. The same as for the bpn credential applies for the membership credential. The error can be fixed with the following queries
30+
31+
```sql
32+
33+
SELECT process_id
34+
FROM issuer.company_ssi_details
35+
where bpnl = 'operator bpn'
36+
and verified_credential_type_id = 4
37+
38+
```
39+
40+
take the process id and insert it into the following query
41+
42+
```sql
43+
44+
UPDATE issuer.process_steps
45+
SET process_step_status_id=2
46+
WHERE process_step_type_id = 4 and process_step_status_id = 4;
47+
48+
INSERT INTO issuer.process_steps(id, process_step_type_id, process_step_status_id, process_id, date_created, date_last_changed, message)
49+
VALUES ('8ddd7518-4532-409e-920a-c2b5029408a7', 5, 1, 'your process id', now(), null, null);
50+
51+
```
52+
53+
**Warning**: Currently the application of the wallet must be set to `catena-x-portal`. This value is not configurable and must be existing in the wallet (see [#226](https://github.com/eclipse-tractusx/ssi-credential-issuer/issues/226)).
54+
## NOTICE
55+
56+
This work is licensed under the [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0).
57+
58+
- SPDX-License-Identifier: Apache-2.0
59+
- SPDX-FileCopyrightText: 2024 Contributors to the Eclipse Foundation
60+
- Source URL: https://github.com/eclipse-tractusx/ssi-credential-issuer

0 commit comments

Comments
 (0)