Search in sources :

Example 1 with GoogleDirectoryServiceConfig

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);
}
Also used : WorkbenchConfig(org.pmiops.workbench.config.WorkbenchConfig) User(org.pmiops.workbench.db.model.User) AuthConfig(org.pmiops.workbench.config.WorkbenchConfig.AuthConfig) GoogleDirectoryServiceConfig(org.pmiops.workbench.config.WorkbenchConfig.GoogleDirectoryServiceConfig) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 WorkbenchConfig (org.pmiops.workbench.config.WorkbenchConfig)1 AuthConfig (org.pmiops.workbench.config.WorkbenchConfig.AuthConfig)1 GoogleDirectoryServiceConfig (org.pmiops.workbench.config.WorkbenchConfig.GoogleDirectoryServiceConfig)1 User (org.pmiops.workbench.db.model.User)1