org.springframework.security:spring-security-test breaking changes
org.springframework.security:spring-security-test 7.0.0-M2 (November 17, 2025) is its newest release with breaking changes, 2 of them. The first: Removed OpenSAML 4 support in org.springframework.security:spring-security-test 7.0.0-M2. Every breaking API change we have recorded in org.springframework.security:spring-security-test on Maven Central: 53 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.2.0. Source repository
Packages on Maven Central run on Java. Java end of life dates.
org.springframework.security:spring-security-test 7.0.0-M2 breaking changes
- Removed
Support for OpenSAML 4 was removed. github.com - Behavior changed
IpAddressMatcher
IpAddressMatcher now rejects IP formats it previously accepted. github.com
org.springframework.security:spring-security-test 7.0.0-M1 breaking changes
- Removed
Deprecated classes that were moved to other packages were removed. github.com - Removed
The Resource Owner Password Credentials grant support was removed. github.com - Removed
PathMatcher usage in messaging was removed. github.com - Removed
Support for ApacheDS was removed. github.com - Removed
Open SAML implementations without a version were removed. github.com - Removed
The .and() method and non-lambda DSL methods were removed; use the lambda-based configuration instead. github.com - Removed
AbstractConfiguredSecurityBuilder.apply
The apply method was removed from AbstractConfiguredSecurityBuilder. github.com - Removed
AbstractSecurityWebSocketMessageBrokerConfigurer
AbstractSecurityWebSocketMessageBrokerConfigurer was removed. github.com - Removed
AssertingPartyDetails
AssertingPartyDetails was removed from APIs in favor of AssertingPartyMetadata. github.com - Removed
AuthorizationDecision
Deprecated elements that used AuthorizationDecision were removed. github.com
And 17 more in this version. Sign up to see every change
org.springframework.security:spring-security-test 6.0.0 breaking changes
- Removed
WebSecurityConfigurerAdapter
The deprecation notice for WebSecurityConfigurerAdapter was improved; no new removal. github.com - Behavior changed
CsrfAuthenticationStrategy
CsrfAuthenticationStrategy behavior changed to match CsrfFilter. github.com - Behavior changed
FilterChainProxy
FilterChainProxy is now registered for all dispatcher types; review filter behavior on forwards and includes. github.com - Signature changed
org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders.FormLoginRequestBuilder.buildRequest
Was org.springframework.mock.web.MockHttpServletRequest buildRequest(javax.servlet.ServletContext); now org.springframework.mock.web.MockHttpServletRequest buildRequest(jakarta.servlet.ServletContext). central.sonatype.com - Signature changed
org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders.LogoutRequestBuilder.buildRequest
Was org.springframework.mock.web.MockHttpServletRequest buildRequest(javax.servlet.ServletContext); now org.springframework.mock.web.MockHttpServletRequest buildRequest(jakarta.servlet.ServletContext). central.sonatype.com - Signature changed
org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers.springSecurity
Was static org.springframework.test.web.servlet.setup.MockMvcConfigurer springSecurity(javax.servlet.Filter); now static org.springframework.test.web.servlet.setup.MockMvcConfigurer springSecurity(jakarta.servlet.Filter). central.sonatype.com - Signature changed
org.springframework.security.test.web.support.WebTestUtils.getCsrfTokenRepository
Was static org.springframework.security.web.csrf.CsrfTokenRepository getCsrfTokenRepository(javax.servlet.http.HttpServletRequest); now static org.springframework.security.web.csrf.CsrfTokenRepository... central.sonatype.com - Signature changed
org.springframework.security.test.web.support.WebTestUtils.getCsrfTokenRequestHandler
Was static org.springframework.security.web.csrf.CsrfTokenRequestHandler getCsrfTokenRequestHandler(javax.servlet.http.HttpServletRequest); now static org.springframework.security.web.csrf.CsrfTokenRequestHandler... central.sonatype.com - Signature changed
org.springframework.security.test.web.support.WebTestUtils.getSecurityContextRepository
Was static org.springframework.security.web.context.SecurityContextRepository getSecurityContextRepository(javax.servlet.http.HttpServletRequest); now static org.springframework.security.web.context.SecurityContextRepository... central.sonatype.com - Signature changed
org.springframework.security.test.web.support.WebTestUtils.setCsrfTokenRepository
Was static void setCsrfTokenRepository(javax.servlet.http.HttpServletRequest, org.springframework.security.web.csrf.CsrfTokenRepository); now static void setCsrfTokenRepository(jakarta.servlet.http.HttpServletRequest... central.sonatype.com
And 1 more in this version. Sign up to see every change
org.springframework.security:spring-security-test 6.0.0-RC1 breaking changes
- Removed
CsrfSpec.tokenFromMultipartDataEnabled
The deprecated CsrfSpec.tokenFromMultipartDataEnabled is removed. github.com - Removed
CsrfWebFilter.setTokenFromMultipartDataEnabled
The deprecated CsrfWebFilter.setTokenFromMultipartDataEnabled is removed. github.com - Removed
WebSecurityConfigurerAdapter
WebSecurityConfigurerAdapter is removed; use component-based security configuration instead. github.com - Behavior changed
Authentication filters now return a 500 status when an AuthenticationServiceException occurs. github.com - Behavior changed
BasicAuthenticationFilter
BasicAuthenticationFilter now skips re-authentication if the username changes and the Authentication is not a UsernamePasswordAuthenticationToken. github.com - Behavior changed
OidcUserAuthority
OidcUserAuthority no longer automatically includes the ROLE_USER authority. github.com - Behavior changed
RequestMatcherDelegatingAuthorizationManager
RequestMatcherDelegatingAuthorizationManager now denies when no match is found; review rules that relied on the previous fallback. github.com - Behavior changed
SAML 2.0 filters
SAML 2.0 filters now live in the web package; update imports. github.com - Default changed
XOR CSRF token protection is now the default. github.com - Default changed
RequestAttributeSecurityContextRepository
RequestAttributeSecurityContextRepository is now used by default instead of NullSecurityContextRepository. github.com
And 3 more in this version. Sign up to see every change
Related packages
- org.springframework.security:spring-security-config
- org.springframework.security:spring-security-core
- org.springframework.security:spring-security-data
- org.springframework.security:spring-security-web
- org.springframework.security:spring-security-taglibs
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.