java - Recover username and password with spring security -
i using spring security web application. in phase of recovering username , password.
the use case:
when user forgets password, can't login.
how send request spring through spring security?
the problem spring security doesn't let pass unless logged in , authenticated.
i using following in config:
@override public void configure(websecurity web) throws exception { web.ignoring().antmatchers("/loginrecover/**"); }
which think totally outside security , vulnerable.
is there other way achieve this?
i use:
@override protected void configure(httpsecurity http) throws exception { http.authorizerequests().antmatchers("/loginrecover").permitall() ...}
with permitall not disabling security filters. spring security related functionality still available.
with ignoring() disable security filter chain request path. spring security features not available. java configuration security "none". this should static resources.
yes, similar , need unauthorized web. correct way disable access not filter.
Comments
Post a Comment