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 Sun, 08 Nov 2026 03:36:15 +0000