Skip to content

Commit 5ff41ce

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fix/tx_code
# Conflicts: # pnpm-lock.yaml
2 parents 79b329f + c5cb3cd commit 5ff41ce

150 files changed

Lines changed: 25602 additions & 156 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@
1111
**/temp/*
1212
**/tmp/*
1313
*.tsbuildinfo
14-
14+
*.tsimp
15+
*.log
16+
packages/siop-oid4vp/lib/schemas/validation/schemaValidation.js
17+
packages/siop-oid4vp/lib/generator/*
18+
!packages/siop-oid4vp/lib/generator/schemaGenerator.ts

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/dist
22
**/coverage
33
**/*/node_modules
4+
packages/siop-oid4vp/lib/schemas

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.15.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.14.0...v0.15.0) (2024-07-15)
7+
8+
### Bug Fixes
9+
10+
- add openid federation jwtVerifier ([a5755ff](https://github.com/Sphereon-Opensource/OID4VCI/commit/a5755ffc5244f1ae72d9ad160c2271de07202ac1))
11+
- build ([2da9205](https://github.com/Sphereon-Opensource/OID4VCI/commit/2da92051cb6387e6c10dd0ff2767aeeddab17dd9))
12+
- build ([84aba5e](https://github.com/Sphereon-Opensource/OID4VCI/commit/84aba5e7cc9aca7b597f24c907dc717be45768d7))
13+
- remove outdated docs ([31731e7](https://github.com/Sphereon-Opensource/OID4VCI/commit/31731e7628a93a1f749600ee138d2470a5048353))
14+
- siop-oid4vp build order ([dacf629](https://github.com/Sphereon-Opensource/OID4VCI/commit/dacf629be63f130c0f027deea6dfdc988eaa3c1b))
15+
16+
### Features
17+
18+
- add siop-oid4vp package ([6bc76dd](https://github.com/Sphereon-Opensource/OID4VCI/commit/6bc76dd2e4843e0acf07fc44c4c0c247496d1973))
19+
- did-auth-siop-adapter ([32ec2fc](https://github.com/Sphereon-Opensource/OID4VCI/commit/32ec2fc27a22cd069dc12fe011debef7f870cf5d))
20+
- update pnpm-lock.yaml ([158fb23](https://github.com/Sphereon-Opensource/OID4VCI/commit/158fb23152a5f8e891cbaeb5904947bb1cacf13e))
21+
22+
# [0.14.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.13.0...v0.14.0) (2024-07-06)
23+
24+
### Bug Fixes
25+
26+
- hasher dependency and token request assert vci11/13 ([81bf769](https://github.com/Sphereon-Opensource/OID4VCI/commit/81bf7692bd7721a7542c82d60fa2c01d7ce2d7b1))
27+
- undo tx_code changes ([7888a14](https://github.com/Sphereon-Opensource/OID4VCI/commit/7888a148a8d1c41103fde35dd065ef84c4a17c2b))
28+
- update tx_code check ([3b0971d](https://github.com/Sphereon-Opensource/OID4VCI/commit/3b0971db8302a977550b403e6611ec53be34f1dd))
29+
30+
### Features
31+
32+
- Enable tx_code support for the issuer, and properly handle both the old userPin and tx_code on the client side. fixes [#117](https://github.com/Sphereon-Opensource/OID4VCI/issues/117) ([e54071c](https://github.com/Sphereon-Opensource/OID4VCI/commit/e54071c65b00ef921acafa2c2c73707a3bc33a44))
33+
634
# [0.13.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.12.0...v0.13.0) (2024-07-03)
735

836
### Bug Fixes

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 align="center">
22
<br>
33
<a href="https://www.sphereon.com"><img src="https://sphereon.com/content/themes/sphereon/assets/img/logo.svg" alt="Sphereon" width="400"></a>
4-
<br>OpenID for Verifiable Credential Issuance - Client and Issuer
4+
<br>OpenID for Verifiable Credentials
55
<br>
66
</h1>
77

@@ -11,9 +11,11 @@ _IMPORTANT the packages are still in an early development stage, which means tha
1111

1212
# Background
1313

14-
This is a mono-repository with a client and issuer pacakge to request and receive Verifiable Credentials using
14+
This is a mono-repository with a client and issuer package to request and receive Verifiable Credentials using
1515
the [OpenID for Verifiable Credential Issuance](https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html) (
16-
OpenID4VCI) specification for receiving Verifiable Credentials as a holder/subject.
16+
OpenID4VCI) specification for receiving Verifiable Credentials as a holder/subject. In addition the monorepo contains a package
17+
for requesting the presentation of Verifiable Credentials and Verifying these presentations [OpenID for Verifiable Presentations](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html) (
18+
OpenID4VP)
1719

1820
OpenID4VCI defines an API designated as Credential Endpoint that is used to issue verifiable credentials and
1921
corresponding OAuth 2.0 based authorization mechanisms (see [RFC6749]) that a Wallet uses to obtain authorization to
@@ -36,8 +38,11 @@ The OpenID4VCI client is typically used in wallet type of applications, where th
3638
The OpenID4VCI issuer is used in issuer type applications, where an organization is issuing the credential(s). More info can be found in the issuer [README](./packages/issuer/README.md).
3739
Please note that the Issuer is a library. It has some examples on how to run it with REST endpoints. If you are however looking for a full solution we suggest our [SSI SDK](https://github.com/Sphereon-Opensource/ssi-sdk) or the [demo](https://github.com/Sphereon-Opensource/OID4VC-demo)
3840

41+
## OpenID for Verifiable Presentations
3942

40-
# Flows
43+
The SIOP-OpenID4VP package is used in wallet type applications and verifier type of applications. Meaning it provides both Wallet (OpenId Provider) and Verifier (Relying Party) functionality. More info can be found in the siop-oid4vp package [README](./packages/siop-oid4vp/README.md)
44+
45+
# OpenID for VCI Flows
4146

4247
The spec lists 2 flows:
4348

@@ -53,3 +58,7 @@ authenticate first.
5358
The below diagram shows the steps involved in the pre-authorized code flow. Note that inner wallet functionalities (like
5459
saving VCs) are out of scope for this library. Also This library doesn't include any functionalities of a VC Issuer
5560
![Flow diagram](https://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/Sphereon-Opensource/OID4VCI-client/develop/docs/preauthorized-code-flow.puml)
61+
62+
# OpenID for VP Flows
63+
64+
Visit the [README](./packages/siop-oid4vp/README.md) for more information.

jest.json

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"preset": "ts-jest",
3-
"moduleFileExtensions": [
4-
"ts",
5-
"tsx",
6-
"js",
7-
"jsx"
8-
],
3+
"moduleFileExtensions": ["ts", "tsx", "js", "jsx"],
94
"collectCoverage": true,
105
"collectCoverageFrom": [
116
"packages/**/src/**/*.ts",
@@ -20,23 +15,19 @@
2015
"!**/node_modules/**",
2116
"!**/packages/**/index.ts"
2217
],
23-
"coverageReporters": [
24-
"text",
25-
"lcov",
26-
"json"
27-
],
18+
"coverageReporters": ["text", "lcov", "json"],
2819
"coverageDirectory": "./coverage",
2920
"transform": {
3021
"\\.jsx?$": "babel-jest",
31-
"\\.tsx?$": ["ts-jest", {
32-
"tsconfig": "./packages/tsconfig-base.json"
33-
}
22+
"\\.tsx?$": [
23+
"ts-jest",
24+
{
25+
"tsconfig": "./packages/tsconfig-base.json"
26+
}
3427
]
3528
},
36-
"testMatch": [
37-
"**/__tests__/**/*.spec.*",
38-
"**/tests/**/*.spec.*"
39-
],
29+
"testMatch": ["**/__tests__/**/*.spec.*", "**/tests/**/*.spec.*"],
30+
"modulePathIgnorePatterns": ["<rootDir>/packages/siop-oid4vp"],
4031
"testEnvironment": "node",
4132
"automock": false,
4233
"verbose": true

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": ["packages/*"],
3-
"version": "0.13.0",
3+
"version": "0.15.0",
44
"npmClient": "pnpm",
55
"command": {
66
"publish": {

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sphereon/oid4vci-workspace",
33
"version": "0.11.0",
4-
"description": "OpenID for Verifiable Credential Issuance workspace",
4+
"description": "OpenID for Verifiable Credentials",
55
"author": "Sphereon",
66
"license": "Apache-2.0",
77
"private": true,
@@ -12,8 +12,8 @@
1212
"fix:prettier": "prettier --write \"{packages,__tests__,!dist}/**/*.{ts,tsx,js,json,md,yml}\"",
1313
"build": "pnpm -r --stream build",
1414
"build:clean": "lerna clean -y && pnpm install && lerna run build:clean --concurrency 1",
15-
"test:ci": "jest --config=jest.json",
16-
"test": "jest --verbose --config=jest.json --coverage=true --detectOpenHandles",
15+
"test:ci": "jest --config=jest.json && jest --config=packages/siop-oid4vp/jest.json",
16+
"test": "jest --verbose --config=jest.json --coverage=true --detectOpenHandles && jest --verbose --config=packages/siop-oid4vp/jest.json --coverage=true --detectOpenHandles",
1717
"clean": "rimraf --glob **/dist **/coverage **/pnpm-lock.yaml packages/**/node_modules node_modules packages/**/tsconfig.tsbuildinfo",
1818
"publish:latest": "lerna publish --conventional-commits --include-merged-tags --create-release github --yes --dist-tag latest --registry https://registry.npmjs.org",
1919
"publish:next": "lerna publish --conventional-prerelease --force-publish --canary --no-git-tag-version --include-merged-tags --preid next --pre-dist-tag next --yes --registry https://registry.npmjs.org",
@@ -49,11 +49,17 @@
4949
"Sphereon",
5050
"Verifiable Credentials",
5151
"OpenID",
52+
"SIOP",
53+
"Self Issued OpenID Provider",
54+
"OPenId for Verifiable Presentations",
5255
"OpenID for Verifiable Credential Issuance",
5356
"OAuth2",
5457
"SSI",
5558
"OpenID4VCI",
59+
"OpenID4VP",
5660
"OIDC4VCI",
57-
"OID4VCI"
61+
"OIDC4VP",
62+
"OID4VCI",
63+
"OID4VP"
5864
]
5965
}

packages/callback-example/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.15.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.14.0...v0.15.0) (2024-07-15)
7+
8+
**Note:** Version bump only for package @sphereon/oid4vci-callback-example
9+
10+
# [0.14.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.13.0...v0.14.0) (2024-07-06)
11+
12+
### Features
13+
14+
- Enable tx_code support for the issuer, and properly handle both the old userPin and tx_code on the client side. fixes [#117](https://github.com/Sphereon-Opensource/OID4VCI/issues/117) ([e54071c](https://github.com/Sphereon-Opensource/OID4VCI/commit/e54071c65b00ef921acafa2c2c73707a3bc33a44))
15+
616
# [0.13.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.12.0...v0.13.0) (2024-07-03)
717

818
### Bug Fixes

packages/callback-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sphereon/oid4vci-callback-example",
3-
"version": "0.13.0",
3+
"version": "0.15.0",
44
"description": "OpenID 4 Verifiable Credential Issuance issuer callback example",
55
"source": "lib/index.ts",
66
"main": "dist/index.js",

packages/client/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.15.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.14.0...v0.15.0) (2024-07-15)
7+
8+
### Features
9+
10+
- did-auth-siop-adapter ([32ec2fc](https://github.com/Sphereon-Opensource/OID4VCI/commit/32ec2fc27a22cd069dc12fe011debef7f870cf5d))
11+
12+
# [0.14.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.13.0...v0.14.0) (2024-07-06)
13+
14+
### Features
15+
16+
- Enable tx_code support for the issuer, and properly handle both the old userPin and tx_code on the client side. fixes [#117](https://github.com/Sphereon-Opensource/OID4VCI/issues/117) ([e54071c](https://github.com/Sphereon-Opensource/OID4VCI/commit/e54071c65b00ef921acafa2c2c73707a3bc33a44))
17+
618
# [0.13.0](https://github.com/Sphereon-Opensource/OID4VCI/compare/v0.12.0...v0.13.0) (2024-07-03)
719

820
### Bug Fixes

0 commit comments

Comments
 (0)