Sphereon-Opensource / OID4VC-demo

Demo for OID4VC, containing a configurable agent, OID4VCI Issuer and demopage as well as SIOPv2 and OID4VP RPs with demo page
Apache License 2.0
17 stars 8 forks source link

Question about the issuer demo #94

Open ThierryThevenet opened 9 months ago

ThierryThevenet commented 9 months ago

Hello, On https://ssi.sphereon.com/demo/issuer/ I see in the credential offer a and an array of string

{
  "grants": {
    "urn:ietf:params:oauth:grant-type:pre-authorized_code": {
      "pre-authorized_code": "hTJJAbnSdRi5fK1z46imAV",
      "user_pin_required": false
    }
  },
  "credentials": [
    "DBCGuest"
  ],

but the DBCGuest is not used as the "id" in the credential supported section which is my interpretation of the draft 11, credential offer If the entry is a string, the string value MUST be one of the id values in one of the objects in the credentials_supported Credential Issuer metadata parameter. When processing, the Wallet MUST resolve this string value to the respective object.

nklomp commented 9 months ago

Hi @ThierryThevenet

This was indeed a misconfiguration in the metadata which has been fixed. It worked with our wallet, because we also match against the types and add VerifiableCredential as a fallback for the matching logic.

Now the wallet gets the credential, but afterwards the DID resolution fails. I am assuming it has to do with the version of the wallet in the store for did:jwk, but happy to hear if it is something else of course

ThierryThevenet commented 9 months ago

Hello, ok I understand. there are still differences -> OpenBadgeCredential vs OpenbadgeCredentialJwt, etc same for others and unfortunately our wallet does only fetch against the types when an object is used in the offer like EBSI does. We have also solved some issues in our side thanks to your issuer.

nklomp commented 9 months ago

Okay thanks. We should have looked at the other credentials as well. Will do so tomorrow

ThierryThevenet commented 9 months ago

Hello, back again to bother you... this is the credential received from the issuer of the Dutch Blockchain Coalition "DBCConferenceAttendee"

The format is a bit different from usual for our wallet, but main issue is that we do not find a "jti" or a "vc.id" . Is that normal here ?

eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MDU5MTExOTUsInZjIjp7IkBjb250ZXh0IjpbImh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIl0sInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWw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