Use runOnServerMaster on LightWeightAccessTokenTest

Closes #49192

Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
rmartinc
2026-05-21 08:32:11 +02:00
committed by Marek Posolda
parent 7c5192c0e0
commit 69b3503a0f
@@ -993,8 +993,8 @@ public class LightWeightAccessTokenTest extends AbstractClientPoliciesTest {
}
private void allowUserinfoWithLightweightAccessToken(boolean allow) {
getTestingClient().testing().setSystemPropertyOnServer("oidc.allow-userinfo-with-lightweight-access-token", String.valueOf(allow));
getTestingClient().testing().reinitializeProviderFactoryWithSystemPropertiesScope(org.keycloak.protocol.LoginProtocol.class.getName(), OIDCLoginProtocol.LOGIN_PROTOCOL, "oidc.");
runOnServerMaster.run(RunHelpers.setSystemPropertyOnServer("oidc.allow-userinfo-with-lightweight-access-token", String.valueOf(allow)));
runOnServerMaster.run(RunHelpers.reinitializeProviderFactoryWithSystemPropertiesScope(org.keycloak.protocol.LoginProtocol.class.getName(), OIDCLoginProtocol.LOGIN_PROTOCOL, "oidc."));
}
@Test