Skip to content

Do not throw when matching credentials#515

Open
acrusage-iaik wants to merge 2 commits intoa-sit-plus:developfrom
acrusage-iaik:feature/2026/02/17-dcql-expose-matching-errors
Open

Do not throw when matching credentials#515
acrusage-iaik wants to merge 2 commits intoa-sit-plus:developfrom
acrusage-iaik:feature/2026/02/17-dcql-expose-matching-errors

Conversation

@acrusage-iaik
Copy link
Collaborator

No description provided.

@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 17, 2026 20:55
@nodh
Copy link
Contributor

nodh commented Feb 18, 2026

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Nice work!

ℹ️ 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".

data class PresentationExchangeCredentialDisclosure(
val credential: SubjectCredentialStore.StoreEntry,
data class PresentationExchangeCredentialDisclosure<Credential: Any>(
val credential: Credential,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isn't this a StoreEntry anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No need to have a fixed type here, fits better in the templated class hierarchies

pathAuthorizationValidator: PathAuthorizationValidator? = null,
filterById: String? = null
): KmmResult<Map<String, InputDescriptorMatches>>
): KmmResult<HolderPresentationExchangeQueryMatchingResult<SubjectCredentialStore.StoreEntry>>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we find a way to deprecate the old method and convert to the new one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

dcqlQuery: DCQLQuery,
filterById: String? = null
): KmmResult<DCQLQueryResult<SubjectCredentialStore.StoreEntry>>
): KmmResult<HolderDCQLQueryMatchingResult<SubjectCredentialStore.StoreEntry>>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we find a way to deprecate the old method and convert to the new one?

Copy link
Collaborator Author

@acrusage-iaik acrusage-iaik Feb 18, 2026

Choose a reason for hiding this comment

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

We can, but I don't think it's necessary, the class HolderDCQLQueryMatchingResult contains the property credentialQueryMatches with exactly the same name and semantics, so the only thing that changes for library users is the return type. In this sense the new code is "backwards compatible"

@acrusage-iaik acrusage-iaik requested a review from nodh February 18, 2026 11:47
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