KEYCLOAK-11178 Suppress incorrect warnings
This commit is contained in:
parent
7ab854fecf
commit
09671aa480
1 changed files with 3 additions and 3 deletions
|
@ -868,13 +868,13 @@ public class LoginActionsService {
|
||||||
|
|
||||||
for (String clientScopeId : authSession.getClientScopes()) {
|
for (String clientScopeId : authSession.getClientScopes()) {
|
||||||
ClientScopeModel clientScope = KeycloakModelUtils.findClientScopeById(realm, client, clientScopeId);
|
ClientScopeModel clientScope = KeycloakModelUtils.findClientScopeById(realm, client, clientScopeId);
|
||||||
if (clientScope != null && clientScope.isDisplayOnConsentScreen()) {
|
if (clientScope != null) {
|
||||||
if (!grantedConsent.isClientScopeGranted(clientScope)) {
|
if (!grantedConsent.isClientScopeGranted(clientScope) && clientScope.isDisplayOnConsentScreen()) {
|
||||||
grantedConsent.addGrantedClientScope(clientScope);
|
grantedConsent.addGrantedClientScope(clientScope);
|
||||||
updateConsentRequired = true;
|
updateConsentRequired = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warnf("Client scope with ID '%s' not found", clientScopeId);
|
logger.warnf("Client scope or client with ID '%s' not found", clientScopeId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue