I am using spring security with my web application. I am in the phase of recovering username and password.
The Use Case:
When a user forgets their password, they can't login.
How to send request to spring through spring security?
The problem is that spring security doesn't let anything pass unless logged in and authenticated.
I am currently using the following in my config:
@Override
public void configure(WebSecurity web) throws Exception {
web.ignoring().antMatchers("/loginrecover/**");
}
Which I think is totally outside security and is vulnerable.
Is there any other way to achieve this?