ServicePrincipal
A service-shaped Principal. Issued via the OAuth2 client_credentials grant (POST /oauth/token) — token_type==“service”.
See auth-server/internal/auth/jwt/claims.go TokenClaims service fields.
Methods
__construct()
function __construct( string $id, // ClientID ?string $jti, ?int $expiresAt, public readonly ?string $serviceName, public readonly array $scopes,)Parameters
$scopes—list<string>