Consider adding common scenario/pattern based security configurations #13296
Labels
theme: partner-use-cases
Use cases we identified with a partner (an established contributor)
type: enhancement
A general enhancement
Spring security has a massive number of configuration options and it can be quite overwhelming to know which combination of security configurations to use. It would be nice to provide some out of the box common configuration settings that configure spring security with "reasonable" secure defaults for a specific use case. For example something like
CommonSecurityConfigurations.restApi();
should turn on all recommend spring security configuration for securing a rest api without having to configure every setting. A brain storm of possible scenario / pattern based configuration settings:The key goal is to enable the developer to think in terms of higher level capabilities so that they can declare to spring security my app needs pattern x, y, and z and have spring security provide a configuration that is recommend for x,y,z. Ideally the scenarios can be composed together but I am ok if they can't be.
Related gh-13266
The text was updated successfully, but these errors were encountered: