Remove VC validation if rawVC is present #869
Closed
anant-srirangam
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
we can't do that because:
In addition, uploading credentials through the VerifiableCredentials API is not the standard use case: Credentials should be ingested through the Issuance flow of DCP. Your standard workflow should not be based on uploading credentials this way. I'm afraid you will have to go through the trouble of providing valid data on API ingress. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background
Currently when uploading a new VC we add rawVC in the
verifiableCredentialContainerand then almost the same things (in general basic use case) as we have in the rawVC to theverifiableCredentialContainer. Unless we do so the validation for upload fails. For instance : if I remove issuer from the container then upload would fail even if its there in the JWT raw VC.On the other hand when the connector calls IH for signed JWTs before sending out for lets say catalog request, it uses only the rawVc information in the participating agent context (verified this using debugger and matched the contents of rawVC vs the overall
verifiableCredentialContainer).So the idea for improvement here is that : why not decode the raw Vc and validate that during credential upload or storage instead of validating presence of issuer, credentialSubject and other fields in
verifiableCredentialContainer??Beta Was this translation helpful? Give feedback.
All reactions