Closed GewoonMaarten closed 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?
@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.
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:
2 Basic ExpressJS server
Acceptance criteria: