---
title: "spring-security-test 7.0.0-M2 Breaking Changes"
description: "What each org.springframework.security:spring-security-test release on Maven Central removed, renamed or changed, each with its source."
canonical_url: https://since.dev/packages/maven/org.springframework.security:spring-security-test
last_updated: 2026-12-04
---

# 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

Latest version `7.2.0`. [Source repository](https://github.com/spring-projects/spring-security)

Packages on Maven Central run on Java. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [6.0.0](#v-6-0-0) to [7.0.0-M2](#v-7-0-0-M2): 29 breaking changes in 2 versions.

## org.springframework.security:spring-security-test 7.0.0-M2 breaking changes

org.springframework.security:spring-security-test 7.0.0-M2, released November 17, 2025: 2 breaking changes.

- **Removed**  

Support for OpenSAML 4 was removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M2)
- **Behavior changed** `IpAddressMatcher`  

IpAddressMatcher now rejects IP formats it previously accepted. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M2)

## org.springframework.security:spring-security-test 7.0.0-M1 breaking changes

org.springframework.security:spring-security-test 7.0.0-M1, released November 17, 2025: 27 breaking changes.

- **Removed**  

Deprecated classes that were moved to other packages were removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed**  

The Resource Owner Password Credentials grant support was removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed**  

PathMatcher usage in messaging was removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed**  

Support for ApacheDS was removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed**  

Open SAML implementations without a version were removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed**  

The .and() method and non-lambda DSL methods were removed; use the lambda-based configuration instead. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed** `AbstractConfiguredSecurityBuilder.apply`  

The apply method was removed from AbstractConfiguredSecurityBuilder. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed** `AbstractSecurityWebSocketMessageBrokerConfigurer`  

AbstractSecurityWebSocketMessageBrokerConfigurer was removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed** `AssertingPartyDetails`  

AssertingPartyDetails was removed from APIs in favor of AssertingPartyMetadata. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)
- **Removed** `AuthorizationDecision`  

Deprecated elements that used AuthorizationDecision were removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/7.0.0-M1)

And 17 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## org.springframework.security:spring-security-test 6.0.0 breaking changes

org.springframework.security:spring-security-test 6.0.0, released November 21, 2022: 11 breaking changes.

- **Removed** `WebSecurityConfigurerAdapter`  

The deprecation notice for WebSecurityConfigurerAdapter was improved; no new removal. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0)
- **Behavior changed** `CsrfAuthenticationStrategy`  

CsrfAuthenticationStrategy behavior changed to match CsrfFilter. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0)
- **Behavior changed** `FilterChainProxy`  

FilterChainProxy is now registered for all dispatcher types; review filter behavior on forwards and includes. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)
- **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](https://central.sonatype.com/artifact/org.springframework.security/spring-security-test/6.0.0)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## org.springframework.security:spring-security-test 6.0.0-RC1 breaking changes

org.springframework.security:spring-security-test 6.0.0-RC1, released November 21, 2022: 13 breaking changes.

- **Removed** `CsrfSpec.tokenFromMultipartDataEnabled`  

The deprecated CsrfSpec.tokenFromMultipartDataEnabled is removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Removed** `CsrfWebFilter.setTokenFromMultipartDataEnabled`  

The deprecated CsrfWebFilter.setTokenFromMultipartDataEnabled is removed. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Removed** `WebSecurityConfigurerAdapter`  

WebSecurityConfigurerAdapter is removed; use component-based security configuration instead. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Behavior changed**  

Authentication filters now return a 500 status when an AuthenticationServiceException occurs. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Behavior changed** `BasicAuthenticationFilter`  

BasicAuthenticationFilter now skips re-authentication if the username changes and the Authentication is not a UsernamePasswordAuthenticationToken. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Behavior changed** `OidcUserAuthority`  

OidcUserAuthority no longer automatically includes the ROLE_USER authority. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Behavior changed** `RequestMatcherDelegatingAuthorizationManager`  

RequestMatcherDelegatingAuthorizationManager now denies when no match is found; review rules that relied on the previous fallback. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Behavior changed** `SAML 2.0 filters`  

SAML 2.0 filters now live in the web package; update imports. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Default changed**  

XOR CSRF token protection is now the default. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)
- **Default changed** `RequestAttributeSecurityContextRepository`  

RequestAttributeSecurityContextRepository is now used by default instead of NullSecurityContextRepository. [github.com](https://github.com/spring-projects/spring-security/releases/tag/6.0.0-RC1)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [org.springframework.security:spring-security-config](https://since.dev/packages/maven/org.springframework.security:spring-security-config.md)
- [org.springframework.security:spring-security-core](https://since.dev/packages/maven/org.springframework.security:spring-security-core.md)
- [org.springframework.security:spring-security-data](https://since.dev/packages/maven/org.springframework.security:spring-security-data.md)
- [org.springframework.security:spring-security-web](https://since.dev/packages/maven/org.springframework.security:spring-security-web.md)
- [org.springframework.security:spring-security-taglibs](https://since.dev/packages/maven/org.springframework.security:spring-security-taglibs.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
