-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplesstatus: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug
Milestone
Description
WebSecurityConfigurerAdapter
has been deprecated in Spring Security 5.7 but the javadoc of the following classes still encourages its use:
HttpSecurity
:Lines 117 to 128 in 4caf53e
* public class FormLoginSecurityConfig extends WebSecurityConfigurerAdapter { * * @Override * protected void configure(HttpSecurity http) throws Exception { * http.authorizeRequests().antMatchers("/**").hasRole("USER").and().formLogin(); * } * * @Override * protected void configure(AuthenticationManagerBuilder auth) throws Exception { * auth.inMemoryAuthentication().withUser("user").password("password").roles("USER"); * } * } WebSecurityConfiguration
:Line 57 in 4caf53e
* can be made to {@link WebSecurity} by extending {@link WebSecurityConfigurerAdapter} - and
WebSecurity
:Line 80 in 4caf53e
* {@link WebSecurityConfigurer}, overriding {@link WebSecurityConfigurerAdapter} or
Metadata
Metadata
Assignees
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplesstatus: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: bugA general bugA general bug