Issue Task Resolved

#111238Provide the principal of a request to the authorization checker

Benni Mack 10/25/26, 14:16 updated 11/18/26, 18:55

Description

The backend and frontend user authentication middlewares put a PrincipalToken of the authenticated principal into the token storage while the request is handled, so the authorization checker decides for the current principal. The previous token is restored afterwards, so neither sub-requests nor the next request in the same process see another principal. A backend user in a frontend request (preview, admin panel) is checked with isGrantedForUser().

Reviews 2

History 114

  1. Thomas Maroschik commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-18T18:55:12+00:00" > 11/18/26, 18:55 </span>

    Applied in changeset commit:0fa0731712ab102c942c22252e3e7c167bdb7ba3.