The outcome of authenticating a request, carried by an {@see AuthContext}. `Anonymous` means no
credential was presented; `Authenticated` means one was presented and verified into an
{@see Actor}; `Invalid` means one was presented and rejected. The three are distinct on purpose —
"no credential" and "a bad credential" are different facts, and fail-closed policy must be able to
tell them apart rather than collapsing both into "not authenticated".
AuthState::cases()
public static functioncases():array
AuthState::from()
public static functionfrom(string|int$value): static
Parameters
Parameters of from()
Name
Type
Description
$value
string|int
AuthState::tryFrom()
public static functiontryFrom(string|int$value): ?static