final class ScopeVoter (View source)

Requires every endpoint scope unless the authenticated identity owns the administrative scope.

Scope evaluation never changes or substitutes the identity trust boundary.

Methods

bool
isGranted(ApiIdentity $identity, array $requiredScopes)

Reports whether the identity satisfies the complete required scope set.

bool

Details

isGranted

bool isGranted(ApiIdentity $identity, array $requiredScopes)

Reports whether the identity satisfies the complete required scope set.

Parameters

ApiIdentity $identity
array $requiredScopes

Return Value

bool