Skip to content

Add delegation_type support to OpenID4VP presentation matcher - #215

Open
danieljkim1 wants to merge 1 commit into
android:wasmfrom
danieljkim1:wasm-pr-delegation
Open

Add delegation_type support to OpenID4VP presentation matcher#215
danieljkim1 wants to merge 1 commit into
android:wasmfrom
danieljkim1:wasm-pr-delegation

Conversation

@danieljkim1

@danieljkim1 danieljkim1 commented Jul 28, 2026

Copy link
Copy Markdown

This PR adds support for provider delegation_type in the OpenID4VP presentation matcher (matcher-rs).

Summary of Changes:

  • bindings.rs: Declared SetDelegationTypeForEntryInSet FFI function imported from the Android Credential Manager host runtime.
  • credman.rs: Added delegation_type: i32 parameter to add_entry_to_set and exposed set_delegation_type_for_entry_in_set in CredmanApi trait.
  • openid4vp_models.rs: Added pub delegation_type: i32 to RegistryCredential and MatchedCredential.
  • dcql.rs & reporter.rs: Propagated candidate.delegation_type through DCQL matching to reporter.rs when populating presentation entrySet items via credman.add_entry_to_set(...).
  • Test Scaffolding: Updated mock credential reporters and test helpers to align with the updated 11-parameter trait signature.

TAG=agy

CONV=0b44330c-f824-447d-83ba-c4685a5977a5

- Add SetDelegationTypeForEntryInSet to bindings.rs and CredmanApi trait
- Add delegation_type field to RegistryCredential and MatchedCredential in openid4vp_models.rs
- Propagate candidate.delegation_type through dcql.rs to reporter.rs for presentation entry sets
- Update test utilities and mock implementations for 11-parameter add_entry_to_set signature

TAG=agy

CONV=0b44330c-f824-447d-83ba-c4685a5977a5
@danieljkim1 danieljkim1 changed the title Add multi-provider delegation support in OpenID4VP WASM matcher Add delegation_type support to OpenID4VP presentation matcher Jul 29, 2026
@danjkim

danjkim commented Jul 29, 2026

Copy link
Copy Markdown

Btw, not ready for review yet.

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.

2 participants