@sphereon/oid4vci-client 0.10.4-unstable.45 → 0.10.4-unstable.48
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.
- package/lib/__tests__/SdJwt.spec.ts +3 -12
- package/package.json +3 -3
|
@@ -77,16 +77,7 @@ describe('sd-jwt vc', () => {
|
|
|
77
77
|
'pre-authorized_code': '123',
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
|
-
|
|
81
|
-
SdJwtCredentialId: {
|
|
82
|
-
credential_definition: {
|
|
83
|
-
type: ['SdJwtCredential'],
|
|
84
|
-
},
|
|
85
|
-
format: 'vc+sd-jwt',
|
|
86
|
-
vct: 'SdJwtCredential',
|
|
87
|
-
id: 'SdJwtCredentialId',
|
|
88
|
-
},
|
|
89
|
-
},
|
|
80
|
+
credential_configuration_ids: ['SdJwtCredential'],
|
|
90
81
|
});
|
|
91
82
|
|
|
92
83
|
nock(vcIssuer.issuerMetadata.credential_issuer).get('/.well-known/openid-credential-issuer').reply(200, JSON.stringify(issuerMetadata));
|
|
@@ -94,7 +85,7 @@ describe('sd-jwt vc', () => {
|
|
|
94
85
|
nock(vcIssuer.issuerMetadata.credential_issuer).get('/.well-known/oauth-authorization-server').reply(404);
|
|
95
86
|
|
|
96
87
|
expect(offerUri.uri).toEqual(
|
|
97
|
-
'openid-credential-offer://?credential_offer=%7B%22grants%22%3A%7B%22urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Apre-authorized_code%22%3A%7B%22pre-authorized_code%22%3A%22123%22%2C%22tx_code%22%3A%7B%22input_mode%22%3A%22text%22%2C%22length%22%3A3%7D%7D%7D%2C%22credential_configuration_ids%22%3A%5B%
|
|
88
|
+
'openid-credential-offer://?credential_offer=%7B%22grants%22%3A%7B%22urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Apre-authorized_code%22%3A%7B%22pre-authorized_code%22%3A%22123%22%2C%22tx_code%22%3A%7B%22input_mode%22%3A%22text%22%2C%22length%22%3A3%7D%7D%7D%2C%22credential_configuration_ids%22%3A%5B%22SdJwtCredential%22%5D%2C%22credential_issuer%22%3A%22https%3A%2F%2Fexample.com%22%7D',
|
|
98
89
|
);
|
|
99
90
|
|
|
100
91
|
const client = await OpenID4VCIClient.fromURI({
|
|
@@ -103,7 +94,7 @@ describe('sd-jwt vc', () => {
|
|
|
103
94
|
|
|
104
95
|
expect(client.credentialOffer?.credential_offer).toEqual({
|
|
105
96
|
credential_issuer: 'https://example.com',
|
|
106
|
-
credential_configuration_ids: ['
|
|
97
|
+
credential_configuration_ids: ['SdJwtCredential'],
|
|
107
98
|
grants: {
|
|
108
99
|
'urn:ietf:params:oauth:grant-type:pre-authorized_code': {
|
|
109
100
|
'pre-authorized_code': '123',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/oid4vci-client",
|
|
3
|
-
"version": "0.10.4-unstable.
|
|
3
|
+
"version": "0.10.4-unstable.48+526ea0b",
|
|
4
4
|
"description": "OpenID for Verifiable Credential Issuance (OpenID4VCI) client",
|
|
5
5
|
"source": "lib/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsc"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@sphereon/oid4vci-common": "0.10.4-unstable.
|
|
18
|
+
"@sphereon/oid4vci-common": "0.10.4-unstable.48+526ea0b",
|
|
19
19
|
"@sphereon/ssi-types": "^0.23.0",
|
|
20
20
|
"cross-fetch": "^3.1.8",
|
|
21
21
|
"debug": "^4.3.4"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"OIDC4VCI",
|
|
70
70
|
"OID4VCI"
|
|
71
71
|
],
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "526ea0bba4ee6d0a4447fb4bb14293d220c73b78"
|
|
73
73
|
}
|