use of org.pmiops.workbench.config.WorkbenchConfig.GoogleDirectoryServiceConfig in project workbench by all-of-us.
the class AuthInterceptorTest method setup.
@Before
public void setup() {
WorkbenchConfig workbenchConfig = new WorkbenchConfig();
workbenchConfig.googleDirectoryService = new GoogleDirectoryServiceConfig();
workbenchConfig.googleDirectoryService.gSuiteDomain = "fake-domain.org";
workbenchConfig.auth = new AuthConfig();
workbenchConfig.auth.serviceAccountApiUsers = new ArrayList<>();
workbenchConfig.auth.serviceAccountApiUsers.add("service-account@appspot.gserviceaccount.com");
this.interceptor = new AuthInterceptor(userInfoService, fireCloudService, Providers.of(workbenchConfig), userDao, userService);
this.user = new User();
user.setUserId(USER_ID);
user.setDisabled(false);
}
Aggregations