UserIdentity
The identity a UserProviderInterface resolves a credential to, before it is mapped onto a Quiote\User\SecurityUser/RbacSecurityUser by Quiote\Security\Auth\AuthenticationManager (packages/auth).
Deliberately minimal: password hash/roles/credentials are provider-specific concerns exposed through whatever shape the provider’s own backend needs; this contract only guarantees a stable identifier to key session/credential storage on.
Synopsis
Section titled “Synopsis”interface UserIdentity
| Implemented by | PasswordProtectedUserIdentity |
| Since | 1.0.0 |
| Source | Security/Auth/UserIdentity.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
getIdentifier(): string | The value UserProviderInterface::loadByIdentifier() was called with (e.g. |
getRoles(): array<int, string> |
getIdentifier()
Section titled “getIdentifier()”abstract public function getIdentifier(): string
The value UserProviderInterface::loadByIdentifier() was called with (e.g.
an email or username) — stable across requests.
Returns string — This identity’s stable identifier.
getRoles()
Section titled “getRoles()”abstract public function getRoles(): array<int, string>
Returns array``<``int``, ``string``> — Role/permission credentials to grant on the SecurityUser.