Skip to content

ClientTypeResolverInterface

Derives ClientType from a set of already-validated token claims.

The default implementation applies the RFC 9068 rule (service when sub === client_id/azp, else user); an app that needs different logic swaps this service rather than toggling a framework flag.

interface ClientTypeResolverInterface

Implemented byClientTypeResolver
Since1.0.0
SourceSecurity/Auth/ClientTypeResolverInterface.php
MethodDescription
resolve(array<string, mixed> $claims): ClientType

abstract public function resolve(array<string, mixed> $claims): ClientType

The validated, raw claim set (pre-TokenClaims).

ParameterTypeDescription
$claimsarray``<``string``, ``mixed``>The validated, raw claim set (pre-TokenClaims).

Returns ClientType — Human vs. machine, per RFC 9068.