Gemeente-DenHaag / mijngemeente-gateway

Public proxy gateway for the OpenZaak API.
Other
1 stars 0 forks source link

Get all "zaken" for a given BSN #5

Closed GewoonMaarten closed 3 years ago

GewoonMaarten commented 3 years ago

As a user I want to be able get all my "zaken". This forwards the request to relevant OpenZaak endpoint.

Out of scope

Depends on:

Acceptance criteria:

ogjtech commented 3 years ago

As a developer I want to be able get all "zaken", so that I can provide it to the user.

State why the user wants this functionality, not why a developer is making it.

Why is the UUID now a BSN? Why are all "zaken" returned based on a BSN but a specific one is based on a UUID? Why not both? Filtering all results on a BSN instead of a user's UUID (or GUID) is probably a bad idea. A BSN can be used as an authentication method, but should not (also) be used as a filter. A 9-digit number is not unique enough and can lead to confusing and wrong results if filters are not defined properly. @petervanmanen what are your thoughts on this and is this possible with the current data-structure of The Hague?

bddjong commented 3 years ago

@ogjtech Users receive a JWT after authenticating with their BSN. The token contains their BSN and the gateway extracts it, and fills it in when making a request to OpenZaak. the GET /zaken endpoint has a query parameter for the BSN, along with a whole lot of other query parameters. We won't need to implement the filtering.