LocalIdentityProvider
final class \
Identity provider for local user records (be_users / fe_users): looks them up applying the visibility constraints (deleted, disabled, starttime, endtime) that previously lived as "enablecolumns" configuration on the user authentication objects.
Usernames are matched as the database collation compares them, which is case-insensitive on MySQL and MariaDB and case-sensitive on PostgreSQL and SQLite. A username lookup that matches more than one record by that comparison is refused. Usernames are not normalized.
Internal
not part of TYPO3 Core API yet, still experimental as part of the authentication modernization groundwork
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Methods
- __construct() : mixed
- findBackendUserByUid() : array|null
- findBackendUserByUsername() : array|null
- findFrontendUserByUid() : array|null
- findFrontendUserByUsername() : array|null
- updateBackendUserLastLogin() : void
- updateBackendUserPasswordHash() : void
- updateFrontendUserLastLogin() : void
- updateFrontendUserPasswordHash() : void
Methods
__construct()
public
__construct(ConnectionPool $connectionPool) : mixed
Parameters
- $connectionPool : ConnectionPool
findBackendUserByUid()
public
findBackendUserByUid(int $uid) : array|null
Parameters
- $uid : int
Return values
array|nullfindBackendUserByUsername()
public
findBackendUserByUsername(string $username) : array|null
Parameters
- $username : string
Return values
array|nullfindFrontendUserByUid()
public
findFrontendUserByUid(int $uid) : array|null
Parameters
- $uid : int
Return values
array|nullfindFrontendUserByUsername()
public
findFrontendUserByUsername(string $username, array<int, int>|null $storagePageIds) : array|null
Parameters
- $username : string
- $storagePageIds : array<int, int>|null
-
the user record must be located in one of these pages, null means unrestricted; callers must state it
Return values
array|nullupdateBackendUserLastLogin()
public
updateBackendUserLastLogin(int $uid, int $timestamp) : void
Parameters
- $uid : int
- $timestamp : int
updateBackendUserPasswordHash()
public
updateBackendUserPasswordHash(int $uid, string $passwordHash) : void
Parameters
- $uid : int
- $passwordHash : string
updateFrontendUserLastLogin()
public
updateFrontendUserLastLogin(int $uid, int $timestamp) : void
Parameters
- $uid : int
- $timestamp : int
updateFrontendUserPasswordHash()
public
updateFrontendUserPasswordHash(int $uid, string $passwordHash) : void
Parameters
- $uid : int
- $passwordHash : string