frontends icon indicating copy to clipboard operation
frontends copied to clipboard

[BUG] AdminApiClient unable to properly define scopes

Open huelsmc opened this issue 11 months ago • 0 comments

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);

Image Image

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

huelsmc avatar Feb 21 '25 10:02 huelsmc