#111587Backend access checks in the frontend are not reusable
Description
Before the frontend accepts the backend user of a request, it checks [BE][IPmaskList], [BE][lockSSL] and [BE][adminOnly], and whether the user may log in. These checks are in the protected method BackendUserAuthenticator::isAuthenticated() and in FrontendBackendUserAuthentication::backendCheckLogin(). Other code that must make the same decision has to copy them. The checks return only true or false, so a caller cannot tell or log why the backend user was denied.
Proposal: one internal class makes these checks in one place and returns a decision that contains the reason for a denial. The existing methods delegate to it, and the behaviour does not change.
Reviews 1
Related issues 1
History 24
-
Matthias Vogel changed Related to #110664 11/25/26, 13:21
-
Gerrit Code Review pushed patch set 1 for main to change 98018 status
NewUnder Review 11/25/26, 13:22 -
Matthias Vogel changed parent task #111576 11/25/26, 13:23
-
Gerrit Code Review pushed patch set 2 for main to change 98018 11/25/26, 13:41