Search in sources :

Example 1 with TestSecurityProvider

use of org.apache.jackrabbit.oak.spi.security.authentication.external.TestSecurityProvider in project jackrabbit-oak by apache.

the class ExternalIdentityImporterTest method before.

@Before
public void before() throws Exception {
    securityProvider = new TestSecurityProvider(getConfigurationParameters(), new ExternalPrincipalConfiguration());
    QueryEngineSettings queryEngineSettings = new QueryEngineSettings();
    queryEngineSettings.setFailTraversal(true);
    Jcr jcr = new Jcr();
    jcr.with(securityProvider);
    jcr.with(queryEngineSettings);
    repo = jcr.createRepository();
}
Also used : QueryEngineSettings(org.apache.jackrabbit.oak.query.QueryEngineSettings) Jcr(org.apache.jackrabbit.oak.jcr.Jcr) TestSecurityProvider(org.apache.jackrabbit.oak.spi.security.authentication.external.TestSecurityProvider) Before(org.junit.Before)

Aggregations

Jcr (org.apache.jackrabbit.oak.jcr.Jcr)1 QueryEngineSettings (org.apache.jackrabbit.oak.query.QueryEngineSettings)1 TestSecurityProvider (org.apache.jackrabbit.oak.spi.security.authentication.external.TestSecurityProvider)1 Before (org.junit.Before)1