-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Configure WebSecurity using WebSecurityCustomizer #23421
New issue
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
Comments
Thanks, @eleftherias. As far as I can tell, all of the We do have one |
@wilkinsona Yes, the We also recommend eventually migrating all of the |
Add a dedicate condition annotation to detect when Spring Security is available but has not been configured by the user. The new annotation helps simplify quite a few of our auto-configuration classes. See gh-23421
In Spring Security 5.4 we introduced the
WebSecurityCustomizer
to allow customizingWebSecurity
without needing theWebSecurityConfigurerAdapter
.Any customizations to
WebSecurity
should be done by exposing aWebSecurityCustomizer
bean.See #22739 (comment) for more details around removing the use of
WebSecurityConfigurerAdapter
.The text was updated successfully, but these errors were encountered: