class ScopeRepository extends EntityRepository implements ScopeRepositoryInterface (View source)

Methods

ScopeEntityInterface
getScopeEntityByIdentifier(string $identifier)

Return information about a scope.

ScopeEntityInterface[]
finalizeScopes(array $scopes, string $grantType, ClientEntityInterface $clientEntity, null|string $userIdentifier = null)

Given a client, grant type and optional user identifier validate the set of scopes requested are valid and optionally append additional scopes or remove requested scopes.

Details

ScopeEntityInterface getScopeEntityByIdentifier(string $identifier)

Return information about a scope.

Parameters

string $identifier The scope identifier

Return Value

ScopeEntityInterface

ScopeEntityInterface[] finalizeScopes(array $scopes, string $grantType, ClientEntityInterface $clientEntity, null|string $userIdentifier = null)

Given a client, grant type and optional user identifier validate the set of scopes requested are valid and optionally append additional scopes or remove requested scopes.

Parameters

array $scopes
string $grantType
ClientEntityInterface $clientEntity
null|string $userIdentifier

Return Value

ScopeEntityInterface[]