Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: initial VP support #21

Merged
merged 66 commits into from
Jul 3, 2023
Merged

feat: initial VP support #21

merged 66 commits into from
Jul 3, 2023

Conversation

nanderstabel
Copy link
Collaborator

@nanderstabel nanderstabel commented May 4, 2023

Description of change

This PR adds support for the DIF Presentation Exchange (https://identity.foundation/presentation-exchange/spec/v2.0.0/):

The oid4vp crates is still quite empty for two reasons: The core logic of the oid4vp logic is actually defined in the DIF Presentation Exchange spec. Also, Most of the shared functionality of siopv2 and oid4vp is currently located inside the siopv2 crate. oid4vp relying on siopv2 would cause a cycle dependency, so that's why a bunch of oid4vp related logic is currently located in siopv2 (see #42).

Links to any relevant issues

#42
closes #9

How the change has been tested

Multiple unit tests and one integration test for the implicit flow for siopv2+oid4vp

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@nanderstabel nanderstabel changed the base branch from dev to feat/requestbuilder May 31, 2023 23:19
@nanderstabel nanderstabel force-pushed the feat/requestbuilder branch 3 times, most recently from df16767 to a1031d2 Compare June 7, 2023 13:47
@nanderstabel nanderstabel changed the base branch from feat/requestbuilder to feat/multi-did June 19, 2023 13:04
@nanderstabel nanderstabel changed the base branch from feat/multi-did to dev June 21, 2023 09:27
@nanderstabel nanderstabel changed the base branch from dev to feat/multi-did June 21, 2023 09:27
Base automatically changed from feat/multi-did to dev June 21, 2023 09:48
nanderstabel and others added 16 commits June 21, 2023 11:54
Add tests for RequestUrl

Add missing request parameters

Add sphereon demo website test

Update documentation with new RequestUrl

Remove sphereon demo example

Add validate_request method to Provider struct

Add preoper Ser and De for SiopRequest and RequestBuilder

Add skeptic for Markdown code testing

Add support for Request by reference

fix: fix rebase conflicts

Add comments and fix some tests

fix: Move `derivative` to dev-dependencies

Refactor Provider and Subject

improve tests and example using wiremock

Improve struct field serde

fix: remove claims from lib.rs

style: fix arguments order

Add did:key DID method

Add support for Request by reference

fix: Remove lifetime annotations

Add preoper Ser and De for SiopRequest and RequestBuilder

Add Scope and Claim

fix: fix rebase conflicts
@nanderstabel nanderstabel changed the title Feat/initial vp support feat: initial vp support Jun 21, 2023
@nanderstabel nanderstabel marked this pull request as ready for review June 21, 2023 11:53
@daniel-mader daniel-mader self-requested a review June 30, 2023 09:31
@nanderstabel nanderstabel changed the title feat: initial vp support feat: initial VP support Jun 30, 2023
daniel-mader
daniel-mader previously approved these changes Jun 30, 2023
Copy link

@daniel-mader daniel-mader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! 🤩

src/lib.rs Outdated Show resolved Hide resolved
oid4vc-manager/src/managers/presentation.rs Outdated Show resolved Hide resolved
oid4vc-core/src/test_utils.rs Outdated Show resolved Hide resolved
oid4vc-core/src/test_utils.rs Outdated Show resolved Hide resolved
siopv2/Cargo.toml Outdated Show resolved Hide resolved
oid4vp/tests/examples/credentials/jwt_vc.json Outdated Show resolved Hide resolved
@nanderstabel nanderstabel merged commit ba452e9 into dev Jul 3, 2023
@nanderstabel nanderstabel deleted the feat/initial-vp-support branch July 3, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add initial support for verifiable presentations
2 participants