We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected Behavior
We should be able to configure WebSecurity without needing WebSecurityConfigurerAdapter.
WebSecurity
WebSecurityConfigurerAdapter
The approach is to create a customizer for WebSecurity and expose that as a bean.
Current Behavior
The WebSecurityConfigurerAdapter has the ability to customize WebSecurity. Here is an example:
@Configuration static class WebConfigurer extends WebSecurityConfigurerAdapter { @Override public void configure(WebSecurity web) { web .ignoring() .antMatchers("/ignore1", "/ignore2"); } }
Related: gh-8804
The text was updated successfully, but these errors were encountered:
Customizer for WebSecurity
7ecd1d3
Closes spring-projectsgh-8978
4e2a050
Closes gh-8978
WebSecurity can now be configured by exposing a WebSecurityCustomizer bean.
WebSecurityCustomizer
@Bean public WebSecurityCustomizer webSecurityCustomizer() { return (web) -> web.ignoring().antMatchers("/ignore1", "/ignore2"); }
Sorry, something went wrong.
eleftherias
Successfully merging a pull request may close this issue.
Expected Behavior
We should be able to configure
WebSecurity
without needingWebSecurityConfigurerAdapter
.The approach is to create a customizer for
WebSecurity
and expose that as a bean.Current Behavior
The
WebSecurityConfigurerAdapter
has the ability to customizeWebSecurity
.Here is an example:
Related: gh-8804
The text was updated successfully, but these errors were encountered: