#111562Authenticate backend requests with access tokens
Description
Non-browser clients (integrations, deployment pipelines, AI clients via MCP) need a proper way to authenticate against TYPO3 without borrowing a password or a session.
Introduce access tokens for backend users:
- Table sys_token: only the SHA-256 hash of a token is stored, plus a hint (last four characters), scopes, expiry, last use and revocation.
- Token format t3p_ + 43 random base62 characters + checksum, recognizable for secret scanners.
- AccessTokenIssuer to create and revoke tokens; tokens expire at the latest after $GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘accessTokenMaxLifetime’] days (default 90).
- CLI commands token:create, token:list and token:revoke.
- TokenAuthenticator: authenticates requests sending “Authorization: Bearer t3p_…” on backend routes that accept tokens (‘authentication’ => [‘token’]); stateless, no session, no cookie; invalid tokens are answered with 401 and count towards the login rate limit.
- Scopes (content:read, content:write) cap what a token request may do: the ScopeVoter denies every decision no scope of the token covers, role checks included; within the scopes the voters decide as for the user. Legacy checks of BackendUserAuthentication are capped as well.
User interface, service accounts and the migration of reactions follow separately.
Reviews 1
History 09
-
Gerrit Code Review pushed patch set 1 for main to change 97967 status
NewUnder Review 11/24/26, 17:29 -
Gerrit Code Review pushed patch set 2 for main to change 97967 11/24/26, 18:28
-
Gerrit Code Review pushed patch set 3 for main to change 97967 11/25/26, 06:45
-
Gerrit Code Review pushed patch set 4 for main to change 97967 11/26/26, 21:15
-
Gerrit Code Review pushed patch set 5 for main to change 97967 11/26/26, 21:39
-
Gerrit Code Review pushed patch set 6 for main to change 97967 11/27/26, 14:44
-
Gerrit Code Review pushed patch set 7 for main to change 97967 11/28/26, 14:03
-
Gerrit Code Review pushed patch set 8 for main to change 97967 11/28/26, 15:16
-
Gerrit Code Review pushed patch set 9 for main to change 97967 11/28/26, 19:02