Skip to content
Snippets Groups Projects
Commit 418ede91 authored by Lucas Yeung's avatar Lucas Yeung Committed by Bojan Bogdanovic
Browse files

Issue #3509299: Do return empty scopes directely when the grant type is...

Issue #3509299: Do return empty scopes directely when the grant type is refresh_token even no user identifier is provided
parent 61e5eb86
No related branches found
No related tags found
1 merge request!176Issue #3509299: Do return empty scopes directely when the grant type is refresh_token even no user identifier is provided
Pipeline #449359 passed with warnings
......@@ -61,7 +61,7 @@ class ScopeRepository implements ScopeRepositoryInterface {
}
$user = $userIdentifier ? $this->entityTypeManager->getStorage('user')->load($userIdentifier) : $default_user;
if (!$user) {
if (!$user && $grantType !== 'refresh_token') {
return [];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment