Skip to content

Update openid4vp claims query to 1.0#518

Open
acrusage-iaik wants to merge 2 commits intoa-sit-plus:developfrom
acrusage-iaik:feature/2026/02/19-update-openid4vp-claims-query-to-1.0
Open

Update openid4vp claims query to 1.0#518
acrusage-iaik wants to merge 2 commits intoa-sit-plus:developfrom
acrusage-iaik:feature/2026/02/19-update-openid4vp-claims-query-to-1.0

Conversation

@acrusage-iaik
Copy link
Collaborator

This removes backwards compatibility, where ISO MDOC claims path pointers were defined using namespace and claimName, but since our presentations are no longer compatible anyway this should be removed now

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@acrusage-iaik acrusage-iaik requested a review from nodh February 19, 2026 18:21
@nodh
Copy link
Member

nodh commented Feb 20, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d61824917b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

DCQLIsoMdocClaimsQuery.SerialNames.NAMESPACE in parameters || DCQLIsoMdocClaimsQuery.SerialNames.CLAIM_NAME in parameters -> DCQLIsoMdocClaimsQuery.serializer()
else -> DCQLJsonClaimsQuery.serializer()
DCQLIsoMdocClaimsQuery.SerialNames.INTENT_TO_RETAIN in parameters -> DCQLIsoMdocClaimsQuery.serializer()
else -> DCQLAmbiguousClaimsQuery.serializer()

Choose a reason for hiding this comment

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

P2 Badge Deserialize path-only claim queries to format-specific type

Returning DCQLAmbiguousClaimsQuery for every claim that omits intent_to_retain makes valid OpenID4VP 1.0 mdoc claims (path only) lose their concrete type when decoded as DCQLClaimsQuery. This breaks the generic construction path in DCQLCredentialQuery.invoke(...), which still casts claims to DCQLIsoMdocClaimsQuery/DCQLJsonClaimsQuery; passing a decoded ambiguous claim into an mdoc query now triggers a ClassCastException even though the claim itself is valid.

Useful? React with 👍 / 👎.

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

Comments