mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Prevent service account lookup when feature is disabled on client (#9579)
Closes #9563
This commit is contained in:
parent
5248815091
commit
8d3a4803bb
@ -150,7 +150,7 @@ public class KeycloakIdentity implements Identity {
|
||||
ClientModel clientModel = getTargetClient();
|
||||
UserModel clientUser = null;
|
||||
|
||||
if (clientModel != null) {
|
||||
if (clientModel != null && clientModel.isServiceAccountsEnabled()) {
|
||||
clientUser = this.keycloakSession.users().getServiceAccount(clientModel);
|
||||
}
|
||||
|
||||
@ -225,7 +225,7 @@ public class KeycloakIdentity implements Identity {
|
||||
ClientModel clientModel = getTargetClient();
|
||||
UserModel clientUser = null;
|
||||
|
||||
if (clientModel != null) {
|
||||
if (clientModel != null && clientModel.isServiceAccountsEnabled()) {
|
||||
clientUser = this.keycloakSession.users().getServiceAccount(clientModel);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user