- \r
- public void login(String un, String pw) {\r
- if (user.isAuthenticated() && user.getName().equals(un) && pz2.spClient.checkAuthentication(user)) {\r
- logger.info("Repeat request from UI to authenticate user. Auth verified for given user name so skipping log-in.");\r
- } else {\r
- logger.info("doing un/pw login");\r
- user.setName(un);\r
- user.setPassword(pw);\r
- login("dummy");\r
- }\r
- }\r
-\r
- @Override\r
- public String login(String navigateTo) {\r
- logger.info("doing login by " + user + " using " + pz2 + " and client " + pz2.getSpClient());\r
- pz2.resetSearchAndRecordCommands();\r
- pzresp.resetAllSessionData();\r
- pz2.getSpClient().authenticate(user); \r
- return navigateTo;\r
- }\r
- \r
- public void ipAuthenticate (ServiceProxyUser user) {\r
- if (!user.isIpAuthenticated()) {\r
- if (user.isAuthenticated()) {\r
- user.clear();\r
- }\r
- pz2.resetSearchAndRecordCommands();\r
- pzresp.resetAllSessionData();\r
- pz2.getSpClient().ipAuthenticate(user);\r
- }\r
- }\r
- \r