- public DashboardUserManager dashboardUserManager() throws IOException, PortalAPIException {
- DashboardUserManager dum = new DashboardUserManager(true);
- // Mock user for convenience in testing
- EcompUser demo = new EcompUser();
- demo.setLoginId("demo");
- demo.setFirstName("Demo");
- demo.setLastName("User");
- demo.setActive(true);
- EcompRole role = new EcompRole();
- role.setName("view");
- Set<EcompRole> roles = new HashSet<>();
- roles.add(role);
- demo.setRoles(roles);
- dum.createUser(demo);
- return dum;
+ public PortalAuthManager portalAuthManagerBean() throws Exception {
+ logger.debug("portalAuthManagerBean");
+ return new PortalAuthManager(IPortalRestCentralService.CREDENTIALS_APP,
+ IPortalRestCentralService.CREDENTIALS_USER, IPortalRestCentralService.CREDENTIALS_PASS, decryptor,
+ userCookie);