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

Fix issuer claim check in VC #1235

Merged
merged 4 commits into from
Sep 20, 2023
Merged

Fix issuer claim check in VC #1235

merged 4 commits into from
Sep 20, 2023

Conversation

abdulmth
Copy link
Contributor

When JWT VC is validated, check_consistency will be called that checks if values are duplicated in the JWT claims and the VC itself in the vc claim. These values will be copied afterward when Credential is created after decoding.

This works fine for all the claims except iss. It's not checked for consistency and it will be copied to the properties field in Credential instead of issuer. This PR fixes that and adds some tests.

I expect similar issues in JWT VP. I will take a look and eventually open another PR.

@abdulmth abdulmth self-assigned this Sep 14, 2023
@abdulmth abdulmth added Wasm Related to Wasm bindings. Becomes part of the Wasm changelog Rust Related to the core Rust code. Becomes part of the Rust changelog. Patch Change without affecting the API that requires a patch release. Part of "Patch" section in changelog labels Sep 14, 2023
@abdulmth abdulmth added this to the v1.0 Features milestone Sep 14, 2023
@abdulmth abdulmth merged commit 1644831 into main Sep 20, 2023
10 checks passed
@abdulmth abdulmth deleted the fix/issuer-claim-check branch September 20, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Patch Change without affecting the API that requires a patch release. Part of "Patch" section in changelog Rust Related to the core Rust code. Becomes part of the Rust changelog. Wasm Related to Wasm bindings. Becomes part of the Wasm changelog
Projects
Development

Successfully merging this pull request may close these issues.

3 participants