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: implement CredentialQueryResolver #168

Conversation

paullatzelsperger
Copy link
Member

What this PR changes/adds

This PR implements the CredentialQueryResolver that accepts a presentation query and returns a list of VerifiableCredentials.

It also adds a default Scope-to-Criterion converter.

Why it does that

Being able to query the database based off of a scope string.

Further notes

  • Using DIF Presentation Exchange definitions is not yet supported. Attempting to do that will throw an UnsupportedOperationException.
  • the EdcScopeToCriterionTransformer is intended for demo purposes only, do not use it in production code!

Linked Issue(s)

Closes #153

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

Copy link
Contributor

@jimmarino jimmarino left a comment

Choose a reason for hiding this comment

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

With one small suggestion

@paullatzelsperger paullatzelsperger merged commit 9f0a2f8 into eclipse-edc:main Nov 9, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dcp enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IATP: Implement CredentialQueryResolver
4 participants