(fix) pass realm in sync context
This commit is contained in:
parent
5eb38e1d08
commit
3e007aa0c4
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ public class ScimStorageProviderFactory
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(KeycloakSession session) {
|
public void run(KeycloakSession session) {
|
||||||
|
var realm = session.realms().getRealm(realmId);
|
||||||
|
session.getContext().setRealm(realm);
|
||||||
var dispatcher = new ScimDispatcher(session);
|
var dispatcher = new ScimDispatcher(session);
|
||||||
if (model.get("propagation-user").equals("true")) {
|
if (model.get("propagation-user").equals("true")) {
|
||||||
dispatcher.runOne(model, (client) -> client.sync(UserAdapter.class, result));
|
dispatcher.runOne(model, (client) -> client.sync(UserAdapter.class, result));
|
||||||
|
|
Loading…
Reference in a new issue