-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix the presentation submission in the oid4vp-rs e2e test. #8
Merged
Ryanmtate
merged 77 commits into
spruceid:main
from
Ryanmtate:fix/fix-the-presentation-submission-in-the-oid4vp-rs-e2e-test
Sep 16, 2024
Merged
Changes from 60 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
10611a8
wip: use ssi 0.8.1, debugging e2e test using did resolver
Ryanmtate 7ea4c50
wip: use VerificationMethodDIDResolver for DIDClient constructor
Ryanmtate 7b3ced0
remove unused imports
Ryanmtate 4a77347
wip: debugging did resolver jwk not found in e2e flow
Ryanmtate 48e152e
feat/improve-presentation-exchange-support-in-oid4vp-rs
Ryanmtate 26e62f1
add getter methods for presentation definition member fields
Ryanmtate 8c47808
fix broken links in documentation
Ryanmtate de5db7d
update presentation submission implementation
Ryanmtate 24845c7
fix test cases. todo: update test cases to use newly created interfac…
Ryanmtate 5036a69
update json schema validator to use anyhow result type
Ryanmtate ac8e904
merge presentation exchange updates
Ryanmtate 6fe4d46
wip: use latest implementation changes, update tests
Ryanmtate 6d29442
fix verification method did resolver tests
Ryanmtate e885a4c
wip: remove unused imports
Ryanmtate 3996946
add ClaimFormat type
Ryanmtate 4e841cc
add regex support for string pattern matching
Ryanmtate edcc8a2
revert uuid presentation definition id type to string
Ryanmtate 23e589a
fix: ensure negation of regex pattern match for error
Ryanmtate 1527933
add 'other' variante to claim format type
Ryanmtate 8ed8828
remove commented out code
Ryanmtate 97b3462
merge presentation exchange updates
Ryanmtate dcdde5c
use ssi sub-crates instead of main ssi dependency
Ryanmtate 1a2af67
add jwt_vc_json and jwt_vp_json claim formats
Ryanmtate 61043a9
wip: construct verifiable presentation for e2e test
Ryanmtate 24497dd
wip: perform validation on presentation submission
Ryanmtate 3423d13
ensure range exclusive values are checked; fix inclusive range values
Ryanmtate 7bd0660
ensure enum values are parsed in alpha descending order
Ryanmtate ce60c03
wip: verify authorized response presentation submission
Ryanmtate cd22624
ensure json schema validator adheres to the specification
Ryanmtate 26dda42
ensure json schema validator adheres to the specification
Ryanmtate d188434
add unit tests for schema validator
Ryanmtate 89db3b2
use serde default value for constraints field if not found during des…
Ryanmtate 0ec29b3
merge schema validator changes
Ryanmtate d478103
remove unused imports
Ryanmtate 5e65c4e
Merge branch 'main' into fix/fix-the-presentation-submission-in-the-o…
Ryanmtate e276d6a
remove unsed imports in test files
Ryanmtate 3d93a0e
update vp token
Ryanmtate 0843f66
rebase with main
Ryanmtate b7d8083
resolve merge conflict; remove schema validator and replace with json…
Ryanmtate 096d383
remove unused dependencies
Ryanmtate f82fa26
add rand crate and provide random nonce method using Rng trait
Ryanmtate b07b715
remove todos and update comments, use JWKResolver instead of Verifica…
Ryanmtate fcb4ed9
fix clippy warnings
Ryanmtate 1398cad
verify jwt in validate_authorization_response presentation definition…
Ryanmtate be2bbed
Update tests/e2e.rs
Ryanmtate 32a49b7
update descriptor map nested path in e2e example
Ryanmtate d050355
remove dependency patches
Ryanmtate 4a0217b
add paths to example for input descriptor constraints field
Ryanmtate 9997486
use top level json path for jwt_vp_json
Ryanmtate 2a93750
Update src/verifier/client.rs
Ryanmtate f490b8b
rebase
Ryanmtate 347259d
revert validation function async signature to use boxed pin future
Ryanmtate 05d550e
add helper methods
Ryanmtate 129d22c
debug: jwt claim signing does not include public key
Ryanmtate a3bf215
make request signer methods return a result
Ryanmtate 7733f65
refactor presentation exchange file into smaller modules
Ryanmtate 54c0f79
fix clippy warnings
Ryanmtate efd5773
Merge branch 'main' into fix/fix-the-presentation-submission-in-the-o…
Ryanmtate a7aed11
fix outcome error cause
Ryanmtate 2e453ca
add credential format and add requested fields helper method to input…
Ryanmtate a3bfdcb
Update src/core/presentation_definition.rs
Ryanmtate 7a337ae
Update src/core/presentation_definition.rs
Ryanmtate 76e3a3a
wip: add notes on required fields parsing
Ryanmtate 51e11e8
update vp token base64 encoding and check for multiple vp payloads
Ryanmtate 65e1b11
move validation to auth response impl instead of presentation definit…
Ryanmtate d0c7439
remove feature gated non-optional deps
Ryanmtate 033fd5e
remove cfg features
Ryanmtate d98d2a4
wip: handle groups in presentation definition, input descriptor tests
Ryanmtate 915b922
remove cfg feature tags
Ryanmtate 3d7b1f5
remove extraneous metadata helper methods; use UntypedObject for dere…
Ryanmtate e9b33df
add submission requirement check for presentation validation
Ryanmtate 64f87eb
add validate method to vp token; ensure submission requirement all ru…
Ryanmtate d3dce7f
add vp token validate unencoded method. fix minor todos.
Ryanmtate 458ff5f
Update Cargo.toml
Ryanmtate 165b1c7
fix other claim format serde
Ryanmtate 0e0f985
use Vec::is_empty versus Option::is_none for various serialization fi…
Ryanmtate b8e9141
revert to use of ClaimFormatMap to pass presentation defintion test s…
Ryanmtate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary feature overhead,
rand
is already in the dependency tree through the ssi crates. Andreqwest
is too as of addingjsonschema
, so we can remove that feature too.p256
should be optional, but with the ssi refactor it looks like that is always imported throughssi-dids
, even with --no-default-features. I think that is a bug, but we can remove it as a feature for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we want the ability to pass in a reference to an existing RNG? e.g.
I don't know if this is a common case where an RNG is already initialized and could be passed in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see
p256
as a re-export fromssi-dids
for0.2.0
: https://docs.rs/ssi-dids/latest/ssi_dids/#reexportsI also don't see
rand
as a re-export fromjsonschema
: https://docs.rs/jsonschema/latest/jsonschema/#reexportsHow are these libraries used from dependencies, if they are not re-exported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to use the crates from those dependencies, there's just no point gating them behind features if they're already in the dependency tree.