use of com.bakdata.conquery.models.config.auth.ApiTokenRealmFactory in project conquery by bakdata.
the class ApiTokenRealmTest method overrideConfig.
@Override
public ConqueryConfig overrideConfig(ConqueryConfig conf, final File workDir) {
XodusStoreFactory storageConfig = (XodusStoreFactory) conf.getStorage();
final Path storageDir = workDir.toPath().resolve(storageConfig.getDirectory().resolve(getClass().getSimpleName()));
return conf.withStorage(storageConfig.withDirectory(storageDir)).withAuthenticationRealms(ImmutableList.<AuthenticationRealmFactory>builder().addAll(conf.getAuthenticationRealms()).add(new ApiTokenRealmFactory(storageDir, new XodusConfig())).build());
}
Aggregations