Skip to content

Commit

Permalink
Fix PEX errors being thrown inadvertently. Use nonce from request in …
Browse files Browse the repository at this point in the history
…response when present. Update deps. Remove jwt-fork in favor of upstream.
  • Loading branch information
nklomp committed Jun 30, 2022
1 parent 2954cd5 commit a06cdb4
Show file tree
Hide file tree
Showing 20 changed files with 2,036 additions and 2,674 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Release Notes
The DID Auth SIOP typescript library is still in an alpha state at this point. Please note that the interfaces might still change a bit as the software still is in active development.

## v0.2.11 - 2022-07-01

- Updated:
- Update to PEX 1.1.2
- Update several other deps
- Fixed:
- Only throw a PEX error in case PEX itself has flagged the submission to be in error
- Use nonce from request in response if available
- Remove DID-JWT fork as the current version supports SIOPv2 iss values


## v0.2.10 - 2022-02-25

- Added:
Expand Down Expand Up @@ -42,7 +53,7 @@ The DID Auth SIOP typescript library is still in an alpha state at this point. P
- Check nonce and did support first before verifying JWT

- Updated:
* Updated PE-JS dependency that fixed a JSON-path bug impacting us
* Updated PEX dependency that fixed a JSON-path bug impacting us


## v0.2.2 - 2021-11-29
Expand All @@ -53,7 +64,7 @@ The DID Auth SIOP typescript library is still in an alpha state at this point. P
## v0.2.1 - 2021-11-28

- Updated:
* Presentation Exchange updated to latest pe-js version 0.5.x. The eventual Presentation is not a VP yet (proof will be in next minor release)
* Presentation Exchange updated to latest PEX version 0.5.x. The eventual Presentation is not a VP yet (proof will be in next minor release)
* Update Uni Resolver client to latest version 0.3.3

## v0.2.0 - 2021-10-06
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ it does not rely on any third parties and strictly happens peer 2 peer, but stil

Next to the user acting as an OpenID Provider, this library also includes support for Verifiable Presentations using
the [Presentation Exchange](https://identity.foundation/presentation-exchange/) support provided by
our [pe-js](https://github.com/Sphereon-Opensource/pe-js) library. This means that the Relying Party can pose submission
our [PEX](https://github.com/Sphereon-Opensource/pex) library. This means that the Relying Party can pose submission
requirements on the Verifiable Credentials it would like to receive from the client/OP. The OP then checks whether it
has the credentials to support the submission requirements. Only if that is the case it will send the relevant (parts of
the) credentials as a Verifiable Presentation in the Authentication Response destined for the Webapp/Relying Party. The
Expand All @@ -39,7 +39,7 @@ Demo: https://vimeo.com/630104529 and a more stripped down demo: https://youtu.b

## Active Development

_IMPORTANT: This software still is in early development stage. As such you should expect breaking changes in APIs, we
_IMPORTANT: This software still is in **VERY** early development stage. As such you should expect breaking changes in APIs, we
expect to keep that to a minimum though._

## Functionality
Expand Down Expand Up @@ -506,13 +506,13 @@ const matches: SubmissionRequirementMatch = checked.matches;
The previous step has filtered the VCs for you into the matches constant. But the user really has to acknowledge that
he/she will be sending in a VP containing the VCs. As mentioned above the selected VCs might still need more filtering
by the user. This part is out of the scope of this library as it is application specific. For more info also see
the [PE-JS library](https://github.com/Sphereon-Opensource/pe-js).
the [PEX library](https://github.com/Sphereon-Opensource/pex).

In the code examples we will use 'userSelectedCredentials' as variable for the outcome of this process.

````typescript
// Your application process here, resulting in:
import {VerifiableCredential} from "@sphereon/pe-js";
import {IVerifiableCredential} from "@sphereon/pex";

const userSelectedCredentials: VerifiableCredential[] // Your selected credentials
````
Expand Down
49 changes: 25 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,53 +26,54 @@
},
"dependencies": {
"@sphereon/did-uni-client": "^0.4.0",
"@sphereon/pex": "^1.0.2",
"@sphereon/pex": "^1.1.2",
"@sphereon/pex-models": "^1.1.0",
"bs58": "^4.0.1",
"cross-fetch": "^3.1.5",
"did-resolver": "^3.1.5",
"eth-crypto": "^2.1.0",
"jose": "^3.20.3",
"did-resolver": "^3.2.2",
"did-jwt": "^6.2.0",
"eth-crypto": "^2.3.0",
"jose": "3.20.3",
"base64url": "^3.0.1",
"querystring": "^0.2.1",
"uint8arrays": "^3.0.0",
"ts-interface-checker": "^1.0.2",
"@stablelib/random": "^1.0.1",
"@stablelib/sha256": "^1.0.1",
"@stablelib/ed25519": "^1.0.2",
"@stablelib/x25519": "^1.0.1",
"@stablelib/x25519": "^1.0.2",
"@stablelib/xchacha20poly1305": "^1.0.1",
"bech32": "^2.0.0",
"elliptic": "^6.5.4",
"js-sha3": "^0.8.0",
"multiformats": "^9.4.10",
"multiformats": "^9.7.0",
"canonicalize": "^1.0.8",
"uuid": "^8.3.2"
},
"devDependencies": {
"@digitalcredentials/did-method-key": "^2.0.3",
"@types/jest": "^27.0.3",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@digitalcredentials/did-method-key": "2.0.3",
"@types/jest": "^28.1.4",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"codecov": "^3.8.3",
"cspell": "^5.13.1",
"dotenv": "^10.0.0",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"cspell": "^6.2.0",
"dotenv": "^16.0.1",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.25.3",
"jest": "^27.3.1",
"jest-junit": "^13.0.0",
"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.2",
"jest-junit": "^14.0.0",
"jwt-decode": "^3.1.2",
"moment": "^2.29.1",
"nock": "^13.2.1",
"moment": "^2.29.3",
"nock": "^13.2.8",
"npm-run-all": "^4.1.5",
"open-cli": "^7.0.1",
"prettier": "^2.5.0",
"ts-jest": "^27.0.7",
"ts-json-schema-generator": "^0.97.0",
"ts-node": "^10.4.0",
"typescript": "^4.5.2"
"prettier": "^2.7.1",
"ts-jest": "^28.0.5",
"ts-json-schema-generator": "^1.0.0",
"ts-node": "^10.8.1",
"typescript": "^4.7.4"
},
"files": [
"dist/main",
Expand Down
48 changes: 0 additions & 48 deletions src/did-jwt-fork/Digest.ts

This file was deleted.

Loading

0 comments on commit a06cdb4

Please sign in to comment.