ClientTypeResolver
The default ClientTypeResolverInterface: applies the RFC 9068 rule — service when the token’s sub equals its client_id/azp (the authority mints machine/client-credentials tokens this way), otherwise user.
An app wanting different logic replaces this service (registered by JwtAuthPlugin) rather than toggling a framework flag.
Synopsis
Section titled “Synopsis”final class ClientTypeResolver implements ClientTypeResolverInterface
| Implements | ClientTypeResolverInterface |
| Since | 1.0.0 |
| Source | ClientTypeResolver.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
resolve(array<string, mixed> $claims): ClientType |
resolve()
Section titled “resolve()”public function resolve(array<string, mixed> $claims): ClientType
The validated, raw claim set.
| Parameter | Type | Description |
|---|---|---|
$claims | array``<``string``, ``mixed``> | The validated, raw claim set. |
Returns ClientType — ClientType::Service when sub === client_id/azp, otherwise ClientType::User.