@cef-ebsi/cli 1.6.1 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,91 @@
1
+ env test
2
+
3
+ # create new issuer
4
+ using user null
5
+ using user
6
+ using user ES256 did1 user.keys.ES256K.privateKeyHex
7
+
8
+ # request credential to onboard
9
+ vcOnboard: conformance getCredential onboard ES256 2.0
10
+ conformance check ti_request_verifiable_authorisation_to_onboard
11
+
12
+ set myIssuer user
13
+
14
+ # register did document
15
+ run vcdm2.0/registerDidDocument vcOnboard.vc
16
+ conformance check ti_register_did
17
+
18
+ # request VerifiableAccreditationToAttest (TI)
19
+ vcTI: conformance getCredential ti ES256 2.0
20
+ conformance check ti_request_verifiable_accreditation_to_attest
21
+
22
+ # register the credential for TI
23
+ t: authorisation auth tir_invite_presentation ES256 vcTI.vc 2.0
24
+ using token t.access_token
25
+ tir setAttributeData myIssuer.did vcTI.reservedAttributeId vcTI.vc
26
+ set vcTI.url tirUrl /issuers/ myIssuer.did /attributes/ vcTI.reservedAttributeId
27
+ conformance check ti_register_verifiable_accreditation_to_attest
28
+
29
+ # create a proxy
30
+ conformance clientMockUpdateList 1 0 0
31
+ t: authorisation auth tir_write_presentation ES256 [] 2.0
32
+ using token t.access_token
33
+ set proxyData {"prefix":"","headers":{},"testSuffix":"/credentials/status/1"}
34
+ set proxyData.prefix myIssuer.clientId
35
+ tir addIssuerProxy myIssuer.did proxyData
36
+ proxies: tir get /issuers/ myIssuer.did /proxies
37
+ set user.proxyId proxies.items.0.proxyId
38
+ set user.accreditationUrl vcTI.url
39
+ conformance clientMockInitiate
40
+
41
+ # request VerifiableAccreditationToAccredit (TAO)
42
+ vcTAO: conformance getCredential tao ES256 2.0
43
+ conformance check tao_request_verifiable_accreditation_to_accredit
44
+
45
+ # register the credential for TAO
46
+ t: authorisation auth tir_write_presentation ES256 [] 2.0
47
+ using token t.access_token
48
+ tir setAttributeData myIssuer.did vcTAO.reservedAttributeId vcTAO.vc
49
+ set vcTAO.url tirUrl /issuers/ myIssuer.did /attributes/ vcTAO.reservedAttributeId
50
+ set user.accreditationUrl vcTAO.url
51
+ conformance clientMockInitiate
52
+ conformance check tao_register_verifiable_accreditation_to_accredit 2.0
53
+
54
+ # request credential to onboard sub-account
55
+ conformance check tao_request_verifiable_authorisation_to_onboard_subaccount 2.0
56
+
57
+ # validate credential and register sub-account
58
+ conformance check tao_validate_verifiable_authorisation_to_onboard_subaccount 2.0
59
+
60
+ # request VerifiableAccreditationToAttest for sub-account (TI)
61
+ conformance check tao_request_verifiable_accreditation_to_attest_subaccount 2.0
62
+
63
+ # validate and register credential for sub-account
64
+ conformance check tao_validate_verifiable_accreditation_to_attest_subaccount 2.0
65
+
66
+ # request VerifiableAccreditationToAccredit for sub-account (TAO)
67
+ conformance check tao_request_verifiable_accreditation_to_accredit_subaccount 2.0
68
+
69
+ # validate and register credential for sub-account
70
+ conformance check tao_validate_verifiable_accreditation_to_accredit_subaccount 2.0
71
+
72
+ # revoke credentials issued to subaccount
73
+ subaccount: compute subaccountDid myIssuer.did
74
+ attributes: tir get /issuers/ subaccount /attributes
75
+ t: authorisation auth tir_write_presentation ES256 [] 2.0
76
+ using token t.access_token
77
+ tir setAttributeMetadata subaccount attributes.items.0.id revoked myIssuer.did vcTAO.reservedAttributeId
78
+ tir setAttributeMetadata subaccount attributes.items.1.id revoked myIssuer.did vcTAO.reservedAttributeId
79
+ conformance check tao_revoke_rights_subaccount 2.0
80
+
81
+ # request VerifiableAuthorisationForTrustChain (Root TAO)
82
+ vcRootTAO: conformance getCredential roottao ES256 2.0 vcOnboard.vc
83
+ conformance check rtao_request_verifiableauthorisationfortrustchain 2.0
84
+
85
+ # register the credential for RootTAO
86
+ t: authorisation auth tir_write_presentation ES256 [] 2.0
87
+ using token t.access_token
88
+ tir setAttributeData myIssuer.did vcRootTAO.reservedAttributeId vcRootTAO.vc
89
+ conformance check rtao_register_verifiableauthorisationfortrustchain 2.0
90
+
91
+ # ACCREDIT AND AUTHORIZE TESTS FINISHED FOR VCDM 2.0!!
@@ -1,28 +1,28 @@
1
1
  using user null
2
2
  using user ES256 did2
3
3
 
4
- c0: conformance holder CTWalletCrossAuthorisedInTime authorisedInTime
4
+ c0: conformance holder CTWalletCrossAuthorisedInTime authorisedInTime ES256 1.1
5
5
  conformance check ct_wallet_cross_authorised_in_time
6
6
 
7
- c1: conformance holder CTWalletCrossAuthorisedDeferred authorisedDeferred
7
+ c1: conformance holder CTWalletCrossAuthorisedDeferred authorisedDeferred ES256 1.1
8
8
  conformance check ct_wallet_cross_authorised_deferred
9
9
 
10
- c2: conformance holder CTWalletCrossPreAuthorisedInTime preAuthorisedInTime
10
+ c2: conformance holder CTWalletCrossPreAuthorisedInTime preAuthorisedInTime ES256 1.1
11
11
  conformance check ct_wallet_cross_pre_authorised_in_time
12
12
 
13
- c3: conformance holder CTWalletCrossPreAuthorisedDeferred preAuthorisedDeferred
13
+ c3: conformance holder CTWalletCrossPreAuthorisedDeferred preAuthorisedDeferred ES256 1.1
14
14
  conformance check ct_wallet_cross_pre_authorised_deferred
15
15
 
16
- c4: conformance holder CTWalletSameAuthorisedInTime authorisedInTime
16
+ c4: conformance holder CTWalletSameAuthorisedInTime authorisedInTime ES256 1.1
17
17
  conformance check ct_wallet_same_authorised_in_time
18
18
 
19
- c5: conformance holder CTWalletSameAuthorisedDeferred authorisedDeferred
19
+ c5: conformance holder CTWalletSameAuthorisedDeferred authorisedDeferred ES256 1.1
20
20
  conformance check ct_wallet_same_authorised_deferred
21
21
 
22
- c6: conformance holder CTWalletSamePreAuthorisedInTime preAuthorisedInTime
22
+ c6: conformance holder CTWalletSamePreAuthorisedInTime preAuthorisedInTime ES256 1.1
23
23
  conformance check ct_wallet_same_pre_authorised_in_time
24
24
 
25
- c7: conformance holder CTWalletSamePreAuthorisedDeferred preAuthorisedDeferred
25
+ c7: conformance holder CTWalletSamePreAuthorisedDeferred preAuthorisedDeferred ES256 1.1
26
26
  conformance check ct_wallet_same_pre_authorised_deferred
27
27
 
28
28
  set credentials []
@@ -35,5 +35,5 @@ set credentials.5 c5
35
35
  set credentials.6 c6
36
36
  set credentials.7 c7
37
37
 
38
- conformance holder CTWalletQualificationCredential authorisedInTime ES256 credentials "" "" 1.1
38
+ conformance holder CTWalletQualificationCredential authorisedInTime ES256 1.1 credentials
39
39
  conformance check request_ct_wallet_qualification_credential
@@ -0,0 +1,39 @@
1
+ using user null
2
+ using user ES256 did2
3
+
4
+ c0: conformance holder CTWalletCrossAuthorisedInTime authorisedInTime ES256 2.0
5
+ conformance check ct_wallet_cross_authorised_in_time 2.0
6
+
7
+ c1: conformance holder CTWalletCrossAuthorisedDeferred authorisedDeferred ES256 2.0
8
+ conformance check ct_wallet_cross_authorised_deferred 2.0
9
+
10
+ c2: conformance holder CTWalletCrossPreAuthorisedInTime preAuthorisedInTime ES256 2.0
11
+ conformance check ct_wallet_cross_pre_authorised_in_time 2.0
12
+
13
+ c3: conformance holder CTWalletCrossPreAuthorisedDeferred preAuthorisedDeferred ES256 2.0
14
+ conformance check ct_wallet_cross_pre_authorised_deferred 2.0
15
+
16
+ c4: conformance holder CTWalletSameAuthorisedInTime authorisedInTime ES256 2.0
17
+ conformance check ct_wallet_same_authorised_in_time 2.0
18
+
19
+ c5: conformance holder CTWalletSameAuthorisedDeferred authorisedDeferred ES256 2.0
20
+ conformance check ct_wallet_same_authorised_deferred 2.0
21
+
22
+ c6: conformance holder CTWalletSamePreAuthorisedInTime preAuthorisedInTime ES256 2.0
23
+ conformance check ct_wallet_same_pre_authorised_in_time 2.0
24
+
25
+ c7: conformance holder CTWalletSamePreAuthorisedDeferred preAuthorisedDeferred ES256 2.0
26
+ conformance check ct_wallet_same_pre_authorised_deferred 2.0
27
+
28
+ set credentials []
29
+ set credentials.0 c0
30
+ set credentials.1 c1
31
+ set credentials.2 c2
32
+ set credentials.3 c3
33
+ set credentials.4 c4
34
+ set credentials.5 c5
35
+ set credentials.6 c6
36
+ set credentials.7 c7
37
+
38
+ conformance holder CTWalletQualificationCredential authorisedInTime ES256 2.0 credentials
39
+ conformance check request_ct_wallet_qualification_credential
@@ -24,15 +24,15 @@ preAuthorizedDeferredCode: compute signJwt preAuthDeferredPayload ES256 preAuthH
24
24
 
25
25
  userPin: compute userPin issuerMockDidNP
26
26
 
27
- conformance check issue_to_holder_initiate_ct_wallet_same_authorised_in_time
28
- conformance check issue_to_holder_validate_ct_wallet_same_authorised_in_time
29
- conformance check issue_to_holder_initiate_ct_wallet_same_authorised_deferred
30
- conformance check issue_to_holder_validate_ct_wallet_same_authorised_deferred
31
- conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised_in_time preAuthorizedInTimeCode userPin
32
- conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised_in_time preAuthorizedInTimeCode userPin
33
- conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised_deferred preAuthorizedDeferredCode userPin
34
- conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised_deferred preAuthorizedDeferredCode userPin
27
+ conformance check issue_to_holder_initiate_ct_wallet_same_authorised_in_time 1.1
28
+ conformance check issue_to_holder_validate_ct_wallet_same_authorised_in_time 1.1
29
+ conformance check issue_to_holder_initiate_ct_wallet_same_authorised_deferred 1.1
30
+ conformance check issue_to_holder_validate_ct_wallet_same_authorised_deferred 1.1
31
+ conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised_in_time 1.1 preAuthorizedInTimeCode userPin
32
+ conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised_in_time 1.1 preAuthorizedInTimeCode userPin
33
+ conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised_deferred 1.1 preAuthorizedDeferredCode userPin
34
+ conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised_deferred 1.1 preAuthorizedDeferredCode userPin
35
35
 
36
36
  compute wait 11
37
- conformance holder CTIssueQualificationCredential authorisedInTime ES256 [] skip-credential-offer
37
+ conformance holder CTIssueQualificationCredential authorisedInTime ES256 1.1 [] skip-credential-offer
38
38
  conformance check request_ct_issue_to_holder_qualification_credential
@@ -0,0 +1,38 @@
1
+ using user null
2
+ using user ES256 did2
3
+ set user.issuerState issuer-state
4
+ conformance clientMockInitiate
5
+
6
+ jwks: conformance get /issuer-mock/jwks
7
+ issuerMockDidNP: compute did2 jwks.keys.0
8
+
9
+ set preAuthInTimePayload {"authorization_details":[{"type":"openid_credential","format":"jwt_vc","types":["VerifiableCredential","VerifiableAttestation","CTWalletSamePreAuthorisedInTime"],"locations":[""]}]}
10
+ set preAuthInTimePayload.iss user.clientId
11
+ set preAuthInTimePayload.sub issuerMockDidNP
12
+ set preAuthInTimePayload.client_id issuerMockDidNP
13
+ set preAuthInTimePayload.authorization_details[0].locations[0] user.clientId
14
+ set preAuthHeaders {}
15
+ set preAuthHeaders.kid user.keys.ES256.kid
16
+ preAuthorizedInTimeCode: compute signJwt preAuthInTimePayload ES256 preAuthHeaders
17
+
18
+ set preAuthDeferredPayload {"authorization_details":[{"type":"openid_credential","format":"jwt_vc","types":["VerifiableCredential","VerifiableAttestation","CTWalletSamePreAuthorisedDeferred"],"locations":[""]}]}
19
+ set preAuthDeferredPayload.iss user.clientId
20
+ set preAuthDeferredPayload.sub issuerMockDidNP
21
+ set preAuthDeferredPayload.client_id issuerMockDidNP
22
+ set preAuthDeferredPayload.authorization_details[0].locations[0] user.clientId
23
+ preAuthorizedDeferredCode: compute signJwt preAuthDeferredPayload ES256 preAuthHeaders
24
+
25
+ userPin: compute userPin issuerMockDidNP
26
+
27
+ conformance check issue_to_holder_initiate_ct_wallet_same_authorised_in_time 2.0
28
+ conformance check issue_to_holder_validate_ct_wallet_same_authorised_in_time 2.0
29
+ conformance check issue_to_holder_initiate_ct_wallet_same_authorised_deferred 2.0
30
+ conformance check issue_to_holder_validate_ct_wallet_same_authorised_deferred 2.0
31
+ conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised_in_time 2.0 preAuthorizedInTimeCode userPin
32
+ conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised_in_time 2.0 preAuthorizedInTimeCode userPin
33
+ conformance check issue_to_holder_initiate_ct_wallet_same_pre_authorised_deferred 2.0 preAuthorizedDeferredCode userPin
34
+ conformance check issue_to_holder_validate_ct_wallet_same_pre_authorised_deferred 2.0 preAuthorizedDeferredCode userPin
35
+
36
+ compute wait 11
37
+ conformance holder CTIssueQualificationCredential authorisedInTime ES256 2.0 [] skip-credential-offer
38
+ conformance check request_ct_issue_to_holder_qualification_credential
@@ -0,0 +1,7 @@
1
+ using user null
2
+ using user ES256
3
+ conformance clientMockInitiate
4
+ conformance check verifier_id_token_exchange 2.0
5
+ conformance check verifier_vp_valid_vc 2.0
6
+ conformance check verifier_vp_expired_vc 2.0
7
+ conformance check verifier_vp_not_yet_valid_vc 2.0