Review main Abandoned

93037[WIP][FEATURE] Introduce Extbase action authorization attribute

Torben Hansen CR 0 V 0 Hard +713 −1 updated 03/02/26, 13:44

Commit message

This patch introduces a declarative authorization mechanism
for Extbase controller actions using the `#[Authorize]`
attribute.

Extension authors can now implement access control using:

- Built-in checks: `requireLogin` and `requireGroups`
- Custom callbacks via dedicated authorization classes
- Public controller methods for simple checks

Multiple attributes can be stacked, and all checks must
pass. When authorization fails, a
`PropagateResponseException` is thrown with HTTP 403
response, immediately stopping the Extbase dispatching
process.

A custom response handled by Extbase can be supplied via
the new PSR-14 event
`BeforeActionAuthorizationDeniedEvent`.

@todo: Add tests

Review

  • Code review CR 0
  • Verified V 0

Issues 1

Files 9

Review log 2

  1. Torben Hansen uploaded patch set 1 03/02/26, 13:43

  2. Torben Hansen abandoned the change 03/02/26, 13:44

    Forgot to add existing Change-ID