feat(#13): S-12c-1 — behandel BFF auth + werkbak (ADR-0013) #85
Reference in New Issue
Block a user
Delete Branch "feat/13-behandel-bff-auth-werkbak"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
First half of S-12c (behandel-portal backend), per ADR-0013 (decisions recorded in #84):
medewerker) alongside the defaultdigidscheme. On validation it lifts Keycloak'srealm_access.rolesonto the principal, and abehandelaarpolicy (medewerker scheme +behandelaarrole) gates/behandel/*. Self-service keeps the digid scheme.Werkbakquery reads the openBeoordelentasks (§8.2, S-12b'sIUserTaskClient) and enriches each with its aggregate's bsn + status;GET /behandel/werkbak(domain) is proxied by the BFFGET /behandel/werkbakbehind the behandelaar policy. The read projection stays the anonymous openbaar model (no prematureIN_BEHANDELING/personal-data plumbing — deferred in ADR-0008).Behavior:
/behandel/werkbakis 401 without a token, 403 for a medewerker lacking the role, 200 + werkbak for a behandelaar.S-12c-2 (next):
POST /behandel/registrations/{id}/decide→ domain decision + complete the Flowable task.Definition of Done
refs); closes the adr-proposal #84make unit): domain 78, bff 23, acceptance 9 (+ acl/event-subscriber unaffected)testgreen; openapi.json regenerated (drift guard passes)Keycloak__MedewerkerAuthoritywired into composePart of #13. closes #84