Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] AdminApiClient unable to properly define scopes #1728

Open
huelsmc opened this issue Feb 21, 2025 · 0 comments
Open

[BUG] AdminApiClient unable to properly define scopes #1728

huelsmc opened this issue Feb 21, 2025 · 0 comments

Comments

@huelsmc
Copy link

huelsmc commented Feb 21, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Triage
Development

No branches or pull requests

1 participant