Add important note for SecurityContextRepository

Issue gh-12049
This commit is contained in:
Steve Riesenberg 2022-11-09 14:47:50 -06:00
parent ea8fb1f159
commit aefc157953
No known key found for this signature in database
GPG Key ID: 5F311AB48A55D521
1 changed files with 5 additions and 0 deletions

View File

@ -255,6 +255,11 @@ fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
---- ----
==== ====
[IMPORTANT]
====
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`.
====
=== Deprecation in SecurityContextRepository === Deprecation in SecurityContextRepository
In Spring Security 5.7, a new method was added to xref:servlet/authentication/persistence.adoc#securitycontextrepository[`SecurityContextRepository`] with the signature: In Spring Security 5.7, a new method was added to xref:servlet/authentication/persistence.adoc#securitycontextrepository[`SecurityContextRepository`] with the signature: