(fix) pass realm in sync context

This commit is contained in:
Hugo Renard 2022-07-07 16:37:17 +02:00
parent 5eb38e1d08
commit 3e007aa0c4
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -124,6 +124,8 @@ public class ScimStorageProviderFactory
@Override
public void run(KeycloakSession session) {
var realm = session.realms().getRealm(realmId);
session.getContext().setRealm(realm);
var dispatcher = new ScimDispatcher(session);
if (model.get("propagation-user").equals("true")) {
dispatcher.runOne(model, (client) -> client.sync(UserAdapter.class, result));