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:
parent
87fbe23270
commit
e065070751
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue