@sphereon/oid4vci-client 0.16.1-next.181 → 0.16.1-next.197
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 +13 -0
- package/package.json +4 -4
|
@@ -10,6 +10,7 @@ import nock from 'nock';
|
|
|
10
10
|
|
|
11
11
|
import { OpenID4VCIClientV1_0_13 } from '..';
|
|
12
12
|
import { createAccessTokenResponse, IssuerMetadataBuilderV1_13, VcIssuerBuilder } from '../../../issuer';
|
|
13
|
+
import { AuthorizationServerMetadataBuilder } from '../../../issuer/lib/builder/AuthorizationServerMetadataBuilder'
|
|
13
14
|
|
|
14
15
|
export const UNIT_TEST_TIMEOUT = 30000;
|
|
15
16
|
|
|
@@ -27,8 +28,20 @@ const issuerMetadata = new IssuerMetadataBuilderV1_13()
|
|
|
27
28
|
} as CredentialConfigurationSupportedV1_0_13)
|
|
28
29
|
.build();
|
|
29
30
|
|
|
31
|
+
const authorizationServerMetadata = new AuthorizationServerMetadataBuilder()
|
|
32
|
+
.withIssuer(issuerMetadata.credential_issuer)
|
|
33
|
+
.withCredentialEndpoint(issuerMetadata.credential_endpoint)
|
|
34
|
+
.withTokenEndpoint(issuerMetadata.token_endpoint!)
|
|
35
|
+
.withAuthorizationEndpoint('https://token-endpoint.example.com/authorize')
|
|
36
|
+
.withTokenEndpointAuthMethodsSupported(['none', 'client_secret_basic', 'client_secret_jwt', 'client_secret_post'])
|
|
37
|
+
.withResponseTypesSupported(['code', 'token', 'id_token'])
|
|
38
|
+
.withScopesSupported(['openid', 'abcdef'])
|
|
39
|
+
.build();
|
|
40
|
+
|
|
41
|
+
|
|
30
42
|
const vcIssuer = new VcIssuerBuilder()
|
|
31
43
|
.withIssuerMetadata(issuerMetadata)
|
|
44
|
+
.withAuthorizationMetadata(authorizationServerMetadata)
|
|
32
45
|
.withInMemoryCNonceState()
|
|
33
46
|
.withInMemoryCredentialOfferState()
|
|
34
47
|
.withInMemoryCredentialOfferURIState()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/oid4vci-client",
|
|
3
|
-
"version": "0.16.1-next.
|
|
3
|
+
"version": "0.16.1-next.197+5082e0e",
|
|
4
4
|
"description": "OpenID for Verifiable Credential Issuance (OpenID4VCI) client",
|
|
5
5
|
"source": "lib/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"build": "tsc"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@sphereon/oid4vc-common": "0.16.1-next.
|
|
19
|
-
"@sphereon/oid4vci-common": "0.16.1-next.
|
|
18
|
+
"@sphereon/oid4vc-common": "0.16.1-next.197+5082e0e",
|
|
19
|
+
"@sphereon/oid4vci-common": "0.16.1-next.197+5082e0e",
|
|
20
20
|
"@sphereon/ssi-types": "0.30.1",
|
|
21
21
|
"cross-fetch": "^3.1.8",
|
|
22
22
|
"debug": "^4.3.5"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"OIDC4VCI",
|
|
70
70
|
"OID4VCI"
|
|
71
71
|
],
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "5082e0e9c4349a77ce96ee360cdfcc53e072dd1c"
|
|
73
73
|
}
|