Skip to content

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.

interface UserIdentity

Implemented byPasswordProtectedUserIdentity
Since1.0.0
SourceSecurity/Auth/UserIdentity.php
MethodDescription
getIdentifier(): stringThe value UserProviderInterface::loadByIdentifier() was called with (e.g.
getRoles(): array<int, string>

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.

abstract public function getRoles(): array<int, string>

Returns array``<``int``, ``string``> — Role/permission credentials to grant on the SecurityUser.