public void refreshAuth(final String username) { try { Pair<Map<String, Set<String>>, UserTO> self = client.self(); auth = self.getLeft(); selfTO = self.getRight(); roles = null; } catch (ForbiddenException e) { LOG.warn("Could not read self(), probably in a {} scenario", StandardEntitlement.MUST_CHANGE_PASSWORD, e); selfTO = new UserTO(); selfTO.setUsername(username); selfTO.setMustChangePassword(true); } }
private void afterAuthentication(final String username) { try { selfTO = client.self().getRight(); } catch (ForbiddenException e) { LOG.warn("Could not read self(), probably in a {} scenario", StandardEntitlement.MUST_CHANGE_PASSWORD, e); selfTO = new UserTO(); selfTO.setUsername(username); selfTO.setMustChangePassword(true); } // bind explicitly this session to have a stateful behavior during http requests, unless session will // expire for every request this.bind(); }
private void afterAuthentication(final String username) { try { selfTO = client.self().getRight(); } catch (ForbiddenException e) { LOG.warn("Could not read self(), probably in a {} scenario", StandardEntitlement.MUST_CHANGE_PASSWORD, e); selfTO = new UserTO(); selfTO.setUsername(username); selfTO.setMustChangePassword(true); } // bind explicitly this session to have a stateful behavior during http requests, unless session will // expire for every request this.bind(); }
((UserTO) anyTO).setMustChangePassword(BooleanUtils.toBoolean(values.get(0).toString()));
userTO.setFailedLogins(user.getFailedLogins()); userTO.setLastLoginDate(user.getLastLoginDate()); userTO.setMustChangePassword(user.isMustChangePassword()); userTO.setToken(user.getToken()); userTO.setTokenExpireTime(user.getTokenExpireTime());
userTO.setSecurityQuestion(userCR.getSecurityQuestion()); userTO.setSecurityAnswer(userCR.getSecurityAnswer()); userTO.setMustChangePassword(userCR.isMustChangePassword()); userTO.getRelationships().addAll(userCR.getRelationships()); userTO.getMemberships().addAll(userCR.getMemberships());
updatedUser.setMustChangePassword(originalUser.isMustChangePassword());