UserProvider
Less than 1 minute
UserProvider
Looks up users.
interface UserProviderA provider is where an application's users live: a database table, an htpasswd file, a directory service and so on. It only finds users. Checking credentials is up to an authenticator, and passwords are only available from providers that also implement Hazaar\Auth\Interface\PasswordStore.
Methods
findByIdentity
Finds a user by identity.
public findByIdentity(string $identity): ?IdentityReturns: Hazaar\Auth\Identity
Parameters
| Parameter | Type | Description |
|---|---|---|
$identity | string |
Generated by Hazaar API Doc Generator on Wed, 28 Oct 2026 08:43:30 +0000