use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.DynamicSyncContext in project jackrabbit-oak by apache.
the class AbstractPrincipalTest method before.
@Override
public void before() throws Exception {
super.before();
// sync external users into the system using the 2 different sync-context implementations
Root systemRoot = getSystemRoot();
SyncContext syncContext = new DynamicSyncContext(syncConfig, idp, getUserManager(systemRoot), getValueFactory(systemRoot));
syncContext.sync(idp.getUser(USER_ID));
syncContext.close();
syncContext = new DefaultSyncContext(syncConfig, idp, getUserManager(systemRoot), getValueFactory(systemRoot));
syncContext.sync(idp.getUser(TestIdentityProvider.ID_SECOND_USER));
syncContext.close();
systemRoot.commit();
root.refresh();
principalProvider = createPrincipalProvider();
}
use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.DynamicSyncContext in project jackrabbit-oak by apache.
the class ExternalGroupPrincipalProviderTest method sync.
void sync(@Nonnull ExternalUser externalUser) throws Exception {
Root systemRoot = getSystemRoot();
DynamicSyncContext syncContext = new DynamicSyncContext(syncConfig, idp, getUserManager(systemRoot), getValueFactory(systemRoot));
syncContext.sync(externalUser);
syncContext.close();
systemRoot.commit();
root.refresh();
}
Aggregations