Skip to content

Missing element in credential request #257

@tlenz

Description

@tlenz

During testing with the latest build of the reference Wallet, we observed a potential deviation from the OpenID4VCI specification regarding the Credential Request.

According to Section 8.2 Credential Request:

Our issuer returns Authorization Details in the Token response, for example:

{
  "access_token": "b13f248f-a726-40aa-8743-25d93c09ce24",
  "token_type": "bearer",
  "expires_in": 300,
  "authorization_details": [
{
      "type": "openid_credential",
      "credential_configuration_id": "urn:eudi:pid:1#dc+sd-jwt",
      "locations": [
        "https://wallet.a-sit.at/m7"
      ],
      "credential_identifiers": [
        "urn:eudi:pid:1#dc+sd-jwt"
      ]
    }
  ]
}

However, during testing the Wallet sends the following in the Credential Request:

{
    "credential_configuration_id": "urn:eudi:pid:1#dc+sd-jwt",
    "proofs": {
        "jwt": [
            "eyJhbGciOiJFU...."
        ]
    }
}

This appears to disregard the credential_identifier requirement and may be non-compliant with the specification.

From a brief inspection of the source code (RequestIssuanceImpl.kt#L333), an IdentifierBase request model exists but does not appear to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions