Should dcql_query
and presentation_definition
be a string when using JAR?
#378
Milestone
dcql_query
and presentation_definition
be a string when using JAR?
#378
When using JAR, the authorization request is encoded as JSON in a JWT. What I've seen most implementations do with
presentation_definition
field is to keep it as JSON when using JAR, and not encode the JSON object as a string even though the spec mentions "A string containing a Presentation Definition JSON object". We addressed this in our implementation by allowing both string and json.For DCQL we ran into the same issue again. We encode it as string now, but when doing interop testing with @markuskreusch for DCQL it was encoded as JSON object. We hadn't applied the same fix yet to also allow JSON (we currently always expect string for DCQL).
Encoding the JSON as string is required when using query parameters, but not when using JAR, and it seems to lead to ambiquity. In my opinion it makes sense to allow JSON for JAR (as it's more natural to keep JSON as JSON when putting it in a JSON object). I think most important is to maybe add something in the spec about what to do when using JAR:
The text was updated successfully, but these errors were encountered: