@sphereon/oid4vci-client 0.4.1-unstable.284 → 0.4.1-unstable.286
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/dist/ProofOfPossessionBuilder.d.ts +11 -11
- package/dist/ProofOfPossessionBuilder.d.ts.map +1 -1
- package/dist/ProofOfPossessionBuilder.js +14 -1
- package/dist/ProofOfPossessionBuilder.js.map +1 -1
- package/lib/ProofOfPossessionBuilder.ts +23 -13
- package/lib/__tests__/IT.spec.ts +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { AccessTokenResponse, Alg, EndpointMetadata, Jwt, OpenId4VCIVersion, Pro
|
|
|
2
2
|
export declare class ProofOfPossessionBuilder {
|
|
3
3
|
private readonly proof?;
|
|
4
4
|
private readonly callbacks?;
|
|
5
|
-
private version;
|
|
5
|
+
private readonly version;
|
|
6
6
|
private kid?;
|
|
7
7
|
private clientId?;
|
|
8
8
|
private issuer?;
|
|
@@ -23,16 +23,16 @@ export declare class ProofOfPossessionBuilder {
|
|
|
23
23
|
version: OpenId4VCIVersion;
|
|
24
24
|
}): ProofOfPossessionBuilder;
|
|
25
25
|
static fromProof(proof: ProofOfPossession, version: OpenId4VCIVersion): ProofOfPossessionBuilder;
|
|
26
|
-
withClientId(clientId: string):
|
|
27
|
-
withKid(kid: string):
|
|
28
|
-
withIssuer(issuer: string):
|
|
29
|
-
withAlg(alg: Alg | string):
|
|
30
|
-
withJti(jti: string):
|
|
31
|
-
withTyp(typ: Typ):
|
|
32
|
-
withAccessTokenNonce(cNonce: string):
|
|
33
|
-
withAccessTokenResponse(accessToken: AccessTokenResponse):
|
|
34
|
-
withEndpointMetadata(endpointMetadata: EndpointMetadata):
|
|
35
|
-
withJwt(jwt: Jwt):
|
|
26
|
+
withClientId(clientId: string): this;
|
|
27
|
+
withKid(kid: string): this;
|
|
28
|
+
withIssuer(issuer: string): this;
|
|
29
|
+
withAlg(alg: Alg | string): this;
|
|
30
|
+
withJti(jti: string): this;
|
|
31
|
+
withTyp(typ: Typ): this;
|
|
32
|
+
withAccessTokenNonce(cNonce: string): this;
|
|
33
|
+
withAccessTokenResponse(accessToken: AccessTokenResponse): this;
|
|
34
|
+
withEndpointMetadata(endpointMetadata: EndpointMetadata): this;
|
|
35
|
+
withJwt(jwt: Jwt): this;
|
|
36
36
|
build(): Promise<ProofOfPossession>;
|
|
37
37
|
}
|
|
38
38
|
//# sourceMappingURL=ProofOfPossessionBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProofOfPossessionBuilder.d.ts","sourceRoot":"","sources":["../lib/ProofOfPossessionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,GAAG,EACH,gBAAgB,EAChB,GAAG,EAEH,iBAAiB,EAEjB,iBAAiB,EACjB,0BAA0B,EAC1B,GAAG,EACJ,MAAM,0BAA0B,CAAC;AAIlC,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAoB;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAA6B;
|
|
1
|
+
{"version":3,"file":"ProofOfPossessionBuilder.d.ts","sourceRoot":"","sources":["../lib/ProofOfPossessionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,GAAG,EACH,gBAAgB,EAChB,GAAG,EAEH,iBAAiB,EAEjB,iBAAiB,EACjB,0BAA0B,EAC1B,GAAG,EACJ,MAAM,0BAA0B,CAAC;AAIlC,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAoB;IAC3C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAA6B;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoB;IAE5C,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,MAAM,CAA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CAAC,iBAAiB,CAAC;CAoBjD"}
|
|
@@ -16,13 +16,16 @@ class ProofOfPossessionBuilder {
|
|
|
16
16
|
constructor({ proof, callbacks, jwt, accessTokenResponse, version, }) {
|
|
17
17
|
this.proof = proof;
|
|
18
18
|
this.callbacks = callbacks;
|
|
19
|
+
this.version = version;
|
|
19
20
|
if (jwt) {
|
|
20
21
|
this.withJwt(jwt);
|
|
21
22
|
}
|
|
23
|
+
else {
|
|
24
|
+
this.withTyp(version < oid4vci_common_1.OpenId4VCIVersion.VER_1_0_11 ? 'jwt' : 'openid4vci-proof+jwt');
|
|
25
|
+
}
|
|
22
26
|
if (accessTokenResponse) {
|
|
23
27
|
this.withAccessTokenResponse(accessTokenResponse);
|
|
24
28
|
}
|
|
25
|
-
this.version = version;
|
|
26
29
|
}
|
|
27
30
|
static fromJwt({ jwt, callbacks, version, }) {
|
|
28
31
|
return new ProofOfPossessionBuilder({ callbacks, jwt, version });
|
|
@@ -54,6 +57,16 @@ class ProofOfPossessionBuilder {
|
|
|
54
57
|
return this;
|
|
55
58
|
}
|
|
56
59
|
withTyp(typ) {
|
|
60
|
+
if (this.version >= oid4vci_common_1.OpenId4VCIVersion.VER_1_0_11) {
|
|
61
|
+
if (!!typ && typ !== 'openid4vci-proof+jwt') {
|
|
62
|
+
throw Error('typ must be openid4vci-proof+jwt for version 1.0.11 and up');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (!!typ && typ !== 'jwt') {
|
|
67
|
+
throw Error('typ must be jwt for version 1.0.10 and below');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
57
70
|
this.typ = typ;
|
|
58
71
|
return this;
|
|
59
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProofOfPossessionBuilder.js","sourceRoot":"","sources":["../lib/ProofOfPossessionBuilder.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAWkC;AAElC,2CAAsD;AAEtD,MAAa,wBAAwB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,OAAO,CAAC,KAAK,CAAC,CAAC;SACrE;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEY,KAAK;;;YAChB,IAAI,IAAI,CAAC,KAAK,EAAE;gBACd,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACpC;iBAAM,IAAI,IAAI,CAAC,SAAS,EAAE;gBACzB,OAAO,MAAM,IAAA,mCAAuB,EAClC,IAAI,CAAC,SAAS,EACd;oBACE,GAAG,EAAE,MAAA,IAAI,CAAC,GAAG,mCAAI,CAAC,IAAI,CAAC,OAAO,GAAG,kCAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,sBAAsB,CAAC;oBAC/F,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,GAAG,EAAE,IAAI,CAAC,GAAG;oBACb,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;oBACvB,KAAK,EAAE,IAAI,CAAC,MAAM;iBACnB,EACD,IAAI,CAAC,GAAG,CACT,CAAC;aACH;YACD,MAAM,IAAI,KAAK,CAAC,0CAAyB,CAAC,CAAC;;KAC5C;CACF;AA/KD,4DA+KC"}
|
|
@@ -16,8 +16,7 @@ import { createProofOfPossession } from './functions';
|
|
|
16
16
|
export class ProofOfPossessionBuilder {
|
|
17
17
|
private readonly proof?: ProofOfPossession;
|
|
18
18
|
private readonly callbacks?: ProofOfPossessionCallbacks;
|
|
19
|
-
|
|
20
|
-
private version: OpenId4VCIVersion;
|
|
19
|
+
private readonly version: OpenId4VCIVersion;
|
|
21
20
|
|
|
22
21
|
private kid?: string;
|
|
23
22
|
private clientId?: string;
|
|
@@ -43,13 +42,15 @@ export class ProofOfPossessionBuilder {
|
|
|
43
42
|
}) {
|
|
44
43
|
this.proof = proof;
|
|
45
44
|
this.callbacks = callbacks;
|
|
45
|
+
this.version = version;
|
|
46
46
|
if (jwt) {
|
|
47
47
|
this.withJwt(jwt);
|
|
48
|
+
} else {
|
|
49
|
+
this.withTyp(version < OpenId4VCIVersion.VER_1_0_11 ? 'jwt' : 'openid4vci-proof+jwt');
|
|
48
50
|
}
|
|
49
51
|
if (accessTokenResponse) {
|
|
50
52
|
this.withAccessTokenResponse(accessTokenResponse);
|
|
51
53
|
}
|
|
52
|
-
this.version = version;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
static fromJwt({
|
|
@@ -80,54 +81,63 @@ export class ProofOfPossessionBuilder {
|
|
|
80
81
|
return new ProofOfPossessionBuilder({ proof, version });
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
withClientId(clientId: string):
|
|
84
|
+
withClientId(clientId: string): this {
|
|
84
85
|
this.clientId = clientId;
|
|
85
86
|
return this;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
withKid(kid: string):
|
|
89
|
+
withKid(kid: string): this {
|
|
89
90
|
this.kid = kid;
|
|
90
91
|
return this;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
withIssuer(issuer: string):
|
|
94
|
+
withIssuer(issuer: string): this {
|
|
94
95
|
this.issuer = issuer;
|
|
95
96
|
return this;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
withAlg(alg: Alg | string):
|
|
99
|
+
withAlg(alg: Alg | string): this {
|
|
99
100
|
this.alg = alg;
|
|
100
101
|
return this;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
withJti(jti: string):
|
|
104
|
+
withJti(jti: string): this {
|
|
104
105
|
this.jti = jti;
|
|
105
106
|
return this;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
withTyp(typ: Typ):
|
|
109
|
+
withTyp(typ: Typ): this {
|
|
110
|
+
if (this.version >= OpenId4VCIVersion.VER_1_0_11) {
|
|
111
|
+
if (!!typ && typ !== 'openid4vci-proof+jwt') {
|
|
112
|
+
throw Error('typ must be openid4vci-proof+jwt for version 1.0.11 and up');
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
if (!!typ && typ !== 'jwt') {
|
|
116
|
+
throw Error('typ must be jwt for version 1.0.10 and below');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
109
119
|
this.typ = typ;
|
|
110
120
|
return this;
|
|
111
121
|
}
|
|
112
122
|
|
|
113
|
-
withAccessTokenNonce(cNonce: string):
|
|
123
|
+
withAccessTokenNonce(cNonce: string): this {
|
|
114
124
|
this.cNonce = cNonce;
|
|
115
125
|
return this;
|
|
116
126
|
}
|
|
117
127
|
|
|
118
|
-
withAccessTokenResponse(accessToken: AccessTokenResponse):
|
|
128
|
+
withAccessTokenResponse(accessToken: AccessTokenResponse): this {
|
|
119
129
|
if (accessToken.c_nonce) {
|
|
120
130
|
this.withAccessTokenNonce(accessToken.c_nonce);
|
|
121
131
|
}
|
|
122
132
|
return this;
|
|
123
133
|
}
|
|
124
134
|
|
|
125
|
-
withEndpointMetadata(endpointMetadata: EndpointMetadata):
|
|
135
|
+
withEndpointMetadata(endpointMetadata: EndpointMetadata): this {
|
|
126
136
|
this.withIssuer(endpointMetadata.issuer);
|
|
127
137
|
return this;
|
|
128
138
|
}
|
|
129
139
|
|
|
130
|
-
withJwt(jwt: Jwt):
|
|
140
|
+
withJwt(jwt: Jwt): this {
|
|
131
141
|
if (!jwt) {
|
|
132
142
|
throw new Error(NO_JWT_PROVIDED);
|
|
133
143
|
}
|
package/lib/__tests__/IT.spec.ts
CHANGED
|
@@ -20,7 +20,7 @@ export const UNIT_TEST_TIMEOUT = 30000;
|
|
|
20
20
|
|
|
21
21
|
const ISSUER_URL = 'https://issuer.research.identiproof.io';
|
|
22
22
|
const jwt = {
|
|
23
|
-
header: { alg: Alg.ES256, kid: 'did:example:ebfeb1f712ebc6f1c276e12ec21/keys/1', typ: 'jwt' },
|
|
23
|
+
header: { alg: Alg.ES256, kid: 'did:example:ebfeb1f712ebc6f1c276e12ec21/keys/1', typ: 'openid4vci-proof+jwt' },
|
|
24
24
|
payload: { iss: 'test-clientId', nonce: 'tZignsnFbp', jti: 'tZignsnFbp223', aud: ISSUER_URL },
|
|
25
25
|
};
|
|
26
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/oid4vci-client",
|
|
3
|
-
"version": "0.4.1-unstable.
|
|
3
|
+
"version": "0.4.1-unstable.286+a3c2561",
|
|
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.4.1-unstable.
|
|
18
|
+
"@sphereon/oid4vci-common": "0.4.1-unstable.286+a3c2561",
|
|
19
19
|
"@sphereon/ssi-types": "^0.9.0",
|
|
20
20
|
"cross-fetch": "^3.1.5",
|
|
21
21
|
"debug": "^4.3.4",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"OIDC4VCI",
|
|
65
65
|
"OID4VCI"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "a3c2561c7596ad7303467528d92cdaa033c7af94"
|
|
68
68
|
}
|