openid / OpenID4VP

54 stars 19 forks source link

DCQL: `namespace` and `claim_name` vs `path` #293

Open bc-pi opened 1 week ago

bc-pi commented 1 week ago

I still don't understand why these can't or shouldn't or aren't conveyed with path too i.e. ["org.iso.18013.5.1","first_name"] but I'll not stand in the way of progress for this PR and make a note to myself to ask/complain about it later. Or maybe just forget.

_Originally posted by @bc-pi in https://github.com/openid/OpenID4VP/pull/266#discussion_r1811480510_ :

Screenshot 2024-10-23 at 6 41 43 AM

markuskreusch commented 1 week ago

I am slightly in favor of using path as the sole option to reference data inside of a credential. This will work for data of any structure, if deeply nested and complex or more simple like for mdoc where it is only a list of claims next to each other.

The semantics of how path is used would be credential format specific in this case, so the spec would define claims path pointer for JSON based credentials and a two element path array referencing namespace and claim name for mdoc credentials. Additional credential formats would reuse path as data referencing mechanism if possible.

Having only path will keep the data objects and parsing logic more simple and defer credential specific stuff to the path evaluation logic.

awoie commented 1 week ago

I'm against semantic overloading of parameters depending on the credential format. That is why I'm in favor of https://github.com/openid/OpenID4VP/issues/284#issuecomment-2430108399.

bc-pi commented 1 week ago

From https://github.com/openid/OpenID4VP/pull/266#discussion_r1814171604 @leecam said:

yeah, I still don't really like this special handling for mdocs. Its pain when implementing it too. So I guess same question from me, can everything just be paths?