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/improve-presentation-exchange-support-in-oid4vp-rs #9

Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
48e152e
feat/improve-presentation-exchange-support-in-oid4vp-rs
Ryanmtate Aug 9, 2024
26e62f1
add getter methods for presentation definition member fields
Ryanmtate Aug 9, 2024
8c47808
fix broken links in documentation
Ryanmtate Aug 9, 2024
de5db7d
update presentation submission implementation
Ryanmtate Aug 10, 2024
24845c7
fix test cases. todo: update test cases to use newly created interfac…
Ryanmtate Aug 10, 2024
5036a69
update json schema validator to use anyhow result type
Ryanmtate Aug 10, 2024
3996946
add ClaimFormat type
Ryanmtate Aug 12, 2024
4e841cc
add regex support for string pattern matching
Ryanmtate Aug 12, 2024
edcc8a2
revert uuid presentation definition id type to string
Ryanmtate Aug 12, 2024
23e589a
fix: ensure negation of regex pattern match for error
Ryanmtate Aug 12, 2024
1527933
add 'other' variante to claim format type
Ryanmtate Aug 12, 2024
8ed8828
remove commented out code
Ryanmtate Aug 12, 2024
26dda42
ensure json schema validator adheres to the specification
Ryanmtate Aug 14, 2024
d188434
add unit tests for schema validator
Ryanmtate Aug 14, 2024
89db3b2
use serde default value for constraints field if not found during des…
Ryanmtate Aug 14, 2024
30910a4
change number and integer set methods to use any value implementing i…
Ryanmtate Aug 14, 2024
91311a2
add properties nested schema check
Ryanmtate Aug 14, 2024
d18f56d
replace schema validator for filter type with Value type; fix claim f…
Ryanmtate Aug 15, 2024
315c48e
remove schema validator, fix doc quote clippy warning
Ryanmtate Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ async-trait = "0.1.73"
base64 = "0.21.4"
did-web = "0.2.2"
http = "1.1.0"
jsonpath_lib = "0.3.0"
p256 = { version = "0.13.2", features = ["jwk"], optional = true }
regex = "1.10.6"
reqwest = { version = "0.12.5", features = ["rustls-tls"], optional = true }
serde = "1.0.188"
serde_cbor = "0.11.2"
serde_json = "1.0.107"
serde_qs = "0.12.0"
serde_urlencoded = "0.7.1"
ssi = "0.7.0"
ssi = "0.7"
Ryanmtate marked this conversation as resolved.
Show resolved Hide resolved
thiserror = "1.0.49"
tokio = "1.32.0"
tracing = "0.1.37"
Expand Down
6 changes: 3 additions & 3 deletions src/core/response/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ mod test {
let object: UntypedObject = serde_json::from_value(json!(
{
"presentation_submission": {
"id": "id",
"definition_id": "definition_id",
"id": "d05a7f51-ac09-43af-8864-e00f0175f2c7",
"definition_id": "f619e64a-8f80-4b71-8373-30cf07b1e4f2",
"descriptor_map": []
},
"vp_token": "string"
Expand All @@ -119,7 +119,7 @@ mod test {
let response = UnencodedAuthorizationResponse::try_from(object).unwrap();
assert_eq!(
response.into_x_www_form_urlencoded().unwrap(),
"presentation_submission=%7B%22definition_id%22%3A%22definition_id%22%2C%22descriptor_map%22%3A%5B%5D%2C%22id%22%3A%22id%22%7D&vp_token=string",
"presentation_submission=%7B%22id%22%3A%22d05a7f51-ac09-43af-8864-e00f0175f2c7%22%2C%22definition_id%22%3A%22f619e64a-8f80-4b71-8373-30cf07b1e4f2%22%2C%22descriptor_map%22%3A%5B%5D%7D&vp_token=string",
)
}
}
Loading
Loading