Skip to content

Commit aefc157

Browse files
author
Steve Riesenberg
committed
Add important note for SecurityContextRepository
Issue gh-12049
1 parent ea8fb1f commit aefc157

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/modules/ROOT/pages/migration.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
255255
----
256256
====
257257

258+
[IMPORTANT]
259+
====
260+
If you are already using an implementation other than `HttpSessionSecurityContextRepository`, you should replace it with your chosen implementation in the example above to ensure that it is used along with `RequestAttributeSecurityContextRepository`.
261+
====
262+
258263
=== Deprecation in SecurityContextRepository
259264

260265
In Spring Security 5.7, a new method was added to xref:servlet/authentication/persistence.adoc#securitycontextrepository[`SecurityContextRepository`] with the signature:

0 commit comments

Comments
 (0)