frontends
frontends copied to clipboard
[BUG] AdminApiClient unable to properly define scopes
Current Behavior
When using "scopes" inside credentials when building the adminApiClient there is missing a transformation to scope as it's expected by League when using PasswordGrant
$client = $this->validateClient($request);
$scopes = $this->validateScopes($this->getRequestParameter('scope', $request, $this->defaultScope));
$user = $this->validateUser($request, $client);
The client is therefore unable to apply any other scope than the default scope defined (write admin)
Expected Behavior
When defining scopes while using grant_type: password it should either be converted to a proper "scope" key before request is actually made or the type should be adjusted to just use scope as expected from API.
Steps To Reproduce
No response
Anything else?
No response