// Although constructor arguments are recommended over field injection,
// this results in fewer lines of code.
+ @Value("${portalapi.security}")
+ private Boolean portalapiSecurity;
+ @Value("${portalapi.appname}")
+ private String appName;
+ @Value("${portalapi.username}")
+ private String portalApiUsername;
+ @Value("${portalapi.password}")
+ private String portalApiPassword;
@Value("${portalapi.decryptor}")
private String decryptor;
@Value("${portalapi.usercookie}")
private String userCookie;
- @Value("${userfile}")
- private String userFilePath;
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
@Bean
public PortalAuthManager portalAuthManagerBean() throws Exception {
logger.debug("portalAuthManagerBean");
- return new PortalAuthManager(IPortalRestCentralService.CREDENTIALS_APP,
- IPortalRestCentralService.CREDENTIALS_USER, IPortalRestCentralService.CREDENTIALS_PASS, decryptor,
- userCookie);
+ return new PortalAuthManager(IPortalRestCentralService.CREDENTIALS_APP, portalApiUsername, portalApiPassword,
+ decryptor, userCookie);
}
}