3. What’s New in Spring Security 4.2

There were 50+ M1 issues closed. The overwhelming majority of these features were contributed by the community. Below you can find the highlights of this release.

3.1 Web Improvements

3.2 Configuration Improvements

  • #3956 - Central configuration of the default role prefix. See the issue for details.
  • #3899 - concurrency-control@max-sessions supports unlimited sessions.
  • #3990 - Support for constructing RoleHierarchy from Map (i.e. yml)
  • #4062 - Custom cookiePath to CookieCsrfTokenRepository
  • #3794 - Allow configuration of InvalidSessionStrategy on SessionManagementConfigurer
  • #4020 - Fix Exposing Beans for defaultMethodExpressionHandler can prevent Method Security

3.3 Miscellaneous

  • #4018 - Fix after csrf() is invoked, future MockMvc infocations use original CsrfTokenRepository
  • Version Updates