How to retrieve user password in Spring Security (java configuration)? I tried this:
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.eraseCredentials(false);
}
and this:
Object credentials = authentication.getCredentials();
but the credentials returned are always null.