LocalIdentityProvider

final class \TYPO3\CMS\Core\Authentication\LocalIdentityProvider

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.

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

findBackendUserByUid()

public findBackendUserByUid(int $uid) : array|null

Parameters

$uid : int

Return values

array|null

findBackendUserByUsername()

public findBackendUserByUsername(string $username) : array|null

Parameters

$username : string

Return values

array|null

findFrontendUserByUid()

public findFrontendUserByUid(int $uid) : array|null

Parameters

$uid : int

Return values

array|null

findFrontendUserByUsername()

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|null

updateBackendUserLastLogin()

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
On this page