class ScopeRepository implements ScopeRepositoryInterface

Methods

__construct(ClientRepository $clients)

Create a new scope repository.

ScopeEntityInterface|null
getScopeEntityByIdentifier(string $identifier)

Retrieve a scope entity by its identifier.

array
finalizeScopes(array $scopes, string $grantType, ClientEntityInterface $clientEntity, string|null $userIdentifier = null, string|null $authCodeId = null)

Restrict scopes to those allowed for the grant and client.

Details

at line 20
__construct(ClientRepository $clients)

Create a new scope repository.

Parameters

ClientRepository $clients

at line 30
ScopeEntityInterface|null getScopeEntityByIdentifier(string $identifier)

Retrieve a scope entity by its identifier.

{@inheritdoc}

Parameters

string $identifier

Return Value

ScopeEntityInterface|null

at line 40
array finalizeScopes(array $scopes, string $grantType, ClientEntityInterface $clientEntity, string|null $userIdentifier = null, string|null $authCodeId = null)

Restrict scopes to those allowed for the grant and client.

{@inheritdoc}

Parameters

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

Return Value

array