Set realm when importing users via keycloak-add-user.json

Closes #33060

Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
This commit is contained in:
Stefan Guilhen 2024-09-18 10:49:52 -03:00 committed by Alexander Schwartz
parent 87fbe23270
commit e065070751

View file

@ -261,6 +261,7 @@ public abstract class KeycloakApplication extends Application {
if (realm == null) {
ServicesLogger.LOGGER.addUserFailedRealmNotFound(userRep.getUsername(), realmRep.getRealm());
}
session.getContext().setRealm(realm);
UserProvider users = session.users();