Hi and thanks for the reply,
Yes, I am using Spring Security 3.0.RC1. I saw the refence link you pointed. With the jdbc user-details-service i able to put some information, like ranking-points in the custom-principal:
Code:
loadUserByUsername(String username) {
SimpleJdbcTemplate sjt = new SimpleJdbcTemplate(getDataSource());
User user = sjt.queryForObject(sql, new UserMapper(), source);
return user;
}
.......
@Override
public User mapRow(ResultSet rs, int arg1) throws SQLException {
BeechUserPrincipal principal = new BeechUserPrincipal(rs.getString("username"), rs.getString("password"), true, true, true, true, getAuthorities(rs.getString("authority").equalsIgnoreCase("ROLE_ADMIN")));
principal.setRankingPoints(rs.getInt("rankingPoints"));
return principal;
}
but if I don't implement a user-service how could I achieve this?