Skip to content

ServicePrincipal

class Vendidit\AuthServer\Domain\ServicePrincipal Source: src/Domain/ServicePrincipal.php

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(string $id, // ClientID

?string $jti,
?int $expiresAt,
public readonly ?string $serviceName,
public readonly array $scopes,)`

@param list $scopes