Issue Task Resolved

#111236Add authorization checker for principals

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

Description

Code that needs an access decision should ask one question — whether the current principal is granted an attribute on a subject — instead of inspecting user objects and group data itself.

Add symfony/security-core (and only that, plus symfony/password-hasher) and provide its authorization checker for TYPO3 principals:

- a PrincipalToken wrapping the immutable Principal of the request, with roles derived from the principal role (cumulative), plus ROLE_BACKEND_USER/ROLE_FRONTEND_USER and one role per group;
- token storage, access decision manager (unanimous strategy: a voter can restrict, but not overrule a denial) and the AuthorizationCheckerInterface/UserAuthorizationCheckerInterface services;
- the #[AsSecurityVoter(priority: …)] attribute to register voters, and Symfony’s RoleVoter.

All new classes are internal.

Reviews 1

History 117

  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.