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 StorageApi + validator #572

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Feb 12, 2025

What this PR changes/adds

This PR adds the Storage API + Controller + JSON-LD Validator

Why it does that

Implement DCP Issuance

Further notes

  • This is a WIP, transformers etc. will come in a later PR
  • storage-api and presentation-api have been moved into :extensions:protocols:dcp:dcp-identityhub, to have symmetry with dcp-issuer.

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #569

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

@paullatzelsperger paullatzelsperger force-pushed the feat/implement_storage_api branch from 640992c to a782fbc Compare February 12, 2025 15:42

participantContextId = onEncoded(participantContextId).orElseThrow(InvalidRequestException::new);

var credentialMessage = protocolRegistry.forContext(DCP_SCOPE_V_1_0).transform(credentialMessageJson, CredentialMessage.class).orElseThrow(InvalidRequestException::new);

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'CredentialMessage credentialMessage' is never read.

var credentialMessage = protocolRegistry.forContext(DCP_SCOPE_V_1_0).transform(credentialMessageJson, CredentialMessage.class).orElseThrow(InvalidRequestException::new);

var issuerScopes = selfIssuedTokenVerifier.verify(authtoken, participantContextId).orElseThrow(f -> new AuthenticationFailedException("ID token verification failed: %s".formatted(f.getFailureDetail())));

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'List issuerScopes' is never read.
@paullatzelsperger paullatzelsperger force-pushed the feat/implement_storage_api branch from f78fdd3 to e2fbefc Compare February 12, 2025 15:52
@paullatzelsperger paullatzelsperger merged commit 5040304 into eclipse-edc:main Feb 12, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api dcp enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Storage API: implement controller and JSON validator
2 participants