Browse Source

Add important note for SecurityContextRepository

Issue gh-12049
Steve Riesenberg 2 năm trước cách đây
mục cha
commit
aefc157953
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      docs/modules/ROOT/pages/migration.adoc

+ 5 - 0
docs/modules/ROOT/pages/migration.adoc

@@ -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
 
 In Spring Security 5.7, a new method was added to xref:servlet/authentication/persistence.adoc#securitycontextrepository[`SecurityContextRepository`] with the signature: