Skip to content

Commit ab29ca7

Browse files
authored
Merge pull request #217 from Sphereon-Opensource/develop
New release
2 parents 246c725 + de3c46d commit ab29ca7

24 files changed

Lines changed: 149 additions & 117 deletions

File tree

lerna.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
2+
"packages": ["packages/*"],
53
"version": "0.20.0",
64
"npmClient": "pnpm",
7-
"workspaces": [
8-
"packages/*"
9-
]
10-
}
5+
"workspaces": ["packages/*"]
6+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"pnpm": ">=10"
2727
},
2828
"resolutions": {
29-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
29+
"@sphereon/ssi-types": "0.36.1-next.159",
3030
"dcql": "1.0.1",
3131
"node-fetch": "2.6.12",
3232
"typescript": "5.8.3"

packages/callback-example/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@sphereon/oid4vci-client": "workspace:^",
3131
"@sphereon/oid4vci-common": "workspace:^",
3232
"@sphereon/oid4vci-issuer": "workspace:^",
33-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
33+
"@sphereon/ssi-types": "0.36.1-next.159",
3434
"jose": "^4.10.0"
3535
},
3636
"devDependencies": {
@@ -46,12 +46,7 @@
4646
"engines": {
4747
"node": ">=20.6"
4848
},
49-
"files": [
50-
"src",
51-
"dist",
52-
"README.md",
53-
"LICENSE.md"
54-
],
49+
"files": ["src", "dist", "README.md", "LICENSE.md"],
5550
"keywords": [
5651
"Sphereon",
5752
"Verifiable Credentials",

packages/client/lib/CredentialRequestClient.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,11 @@ export class CredentialRequestClient {
267267
}
268268
response.access_token = requestToken
269269

270-
/* TODO SSISDK-85
271-
if ((uniformRequest.credential_subject_issuance && response.successBody) || response.successBody?.credential_subject_issuance) {
270+
if ((uniformRequest.credential_subject_issuance && response.successBody) || response.successBody?.credential_subject_issuance) {
272271
if (JSON.stringify(uniformRequest.credential_subject_issuance) !== JSON.stringify(response.successBody?.credential_subject_issuance)) {
273272
throw Error('Subject signing was requested, but issuer did not provide the options in its response')
274273
}
275-
}*/
274+
}
276275
logger.debug(`Credential endpoint ${credentialEndpoint} response:\r\n${JSON.stringify(response, null, 2)}`)
277276

278277
return {

packages/client/lib/MetadataClientV1_0_15.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export class MetadataClientV1_0_15 {
5555
let credential_endpoint: string | undefined
5656
let nonce_endpoint: string | undefined
5757
let deferred_credential_endpoint: string | undefined
58+
let notification_endpoint: string | undefined
5859
let authorization_endpoint: string | undefined
5960
let authorization_challenge_endpoint: string | undefined
6061
let authorizationServerType: AuthorizationServerType = 'OID4VCI'
@@ -66,6 +67,7 @@ export class MetadataClientV1_0_15 {
6667
credential_endpoint = credentialIssuerMetadata.credential_endpoint
6768
nonce_endpoint = credentialIssuerMetadata.nonce_endpoint
6869
deferred_credential_endpoint = credentialIssuerMetadata.deferred_credential_endpoint
70+
notification_endpoint = credentialIssuerMetadata.notification_endpoint
6971
if (credentialIssuerMetadata.token_endpoint) {
7072
token_endpoint = credentialIssuerMetadata.token_endpoint
7173
}
@@ -140,6 +142,15 @@ export class MetadataClientV1_0_15 {
140142
deferred_credential_endpoint = authMetadata.deferred_credential_endpoint
141143
}
142144
}
145+
if (authMetadata.notification_endpoint) {
146+
if (notification_endpoint && authMetadata.notification_endpoint !== notification_endpoint) {
147+
logger.debug(
148+
`Credential issuer has a different notification_endpoint (${notification_endpoint}) from the Authorization Server (${authMetadata.notification_endpoint}). Will use the issuer value`,
149+
)
150+
} else {
151+
notification_endpoint = authMetadata.notification_endpoint
152+
}
153+
}
143154
}
144155

145156
if (!authorization_endpoint) {
@@ -182,6 +193,7 @@ export class MetadataClientV1_0_15 {
182193
display: ci.display ?? [],
183194
...(nonce_endpoint && { nonce_endpoint }),
184195
...(deferred_credential_endpoint && { deferred_credential_endpoint }),
196+
...(notification_endpoint && { notification_endpoint }),
185197
}
186198

187199
logger.debug(`Issuer ${issuer} token endpoint ${token_endpoint}, credential endpoint ${credential_endpoint}`)
@@ -192,6 +204,7 @@ export class MetadataClientV1_0_15 {
192204
token_endpoint,
193205
credential_endpoint,
194206
authorization_challenge_endpoint,
207+
notification_endpoint,
195208
authorizationServerType,
196209
credentialIssuerMetadata: v15CredentialIssuerMetadata,
197210
authorizationServerMetadata: authMetadata,

packages/client/lib/OpenID4VCIClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ export class OpenID4VCIClient {
548548
if (!this.shouldRetryWithFreshNonce(e)) {
549549
return Promise.reject(e instanceof Error ? e : Error(String(e)))
550550
}
551-
552551
// one retry with fresh nonce + rebuilt proof
553552
;(this._state as OpenID4VCIClientStateV1_0_15).cachedCNonce = undefined
554553

packages/client/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dependencies": {
3030
"@sphereon/oid4vc-common": "workspace:^",
3131
"@sphereon/oid4vci-common": "workspace:^",
32-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
32+
"@sphereon/ssi-types": "0.36.1-next.159",
3333
"cross-fetch": "^4.1.0",
3434
"debug": "^4.4.0"
3535
},
@@ -55,12 +55,7 @@
5555
"engines": {
5656
"node": ">=20"
5757
},
58-
"files": [
59-
"src",
60-
"dist",
61-
"README.md",
62-
"LICENSE.md"
63-
],
58+
"files": ["src", "dist", "README.md", "LICENSE.md"],
6459
"keywords": [
6560
"Sphereon",
6661
"Verifiable Credentials",

packages/common/lib/hasher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { HasherSync, shaHasher } from '@sphereon/ssi-types'
22

3-
export const defaultHasher: HasherSync = (data: string | ArrayBuffer, algorithm: string) => {
3+
export const defaultHasher: HasherSync = (data: string | ArrayBuffer | SharedArrayBuffer, algorithm: string) => {
44
return shaHasher(data, algorithm)
55
}

packages/common/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test": "vitest run --config ../../vitest.config.mts --coverage"
2323
},
2424
"dependencies": {
25-
"@sphereon/ssi-types": "0.34.1-feature.SSISDK.78.280",
25+
"@sphereon/ssi-types": "0.36.1-next.159",
2626
"jwt-decode": "^4.0.0",
2727
"uint8arrays": "^3.1.1",
2828
"uuid": "^9.0.0"
@@ -34,12 +34,7 @@
3434
"engines": {
3535
"node": ">=20"
3636
},
37-
"files": [
38-
"src",
39-
"dist",
40-
"README.md",
41-
"LICENSE.md"
42-
],
37+
"files": ["src", "dist", "README.md", "LICENSE.md"],
4338
"keywords": [
4439
"Sphereon",
4540
"Verifiable Credentials",

packages/did-auth-siop-adapter/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
"engines": {
3737
"node": ">=20"
3838
},
39-
"files": [
40-
"dist/**/*"
41-
],
39+
"files": ["dist/**/*"],
4240
"keywords": [
4341
"Sphereon",
4442
"SSI",

0 commit comments

Comments
 (0)