1
0
mirror of synced 2026-08-05 17:57:15 +00:00
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
This commit is contained in:
Andrey Litvitski
2026-03-27 23:31:55 +03:00
committed by Josh Cummings
parent c3e0b98b7e
commit 6335caabae
7 changed files with 97 additions and 36 deletions
@@ -248,13 +248,13 @@ The previous description already gives us a clue on where to add the filter, sin
Based on the rule of thumb, you can add it before xref:servlet/authentication/logout.adoc[`LogoutFilter`], like so:
include-code::./SecurityConfig[tag=snippet-before,indent=0]
include-code::./SecurityConfigBefore[tag=snippet,indent=0]
<1> Use `HttpSecurity#addFilterBefore` to add the `TenantFilter` before the `LogoutFilter`.
Or after xref:servlet/authentication/anonymous.adoc[`AnonymousAuthenticationFilter`], the last authentication filter in the chain, like so:
include-code::./SecurityConfig[tag=snippet-after,indent=0]
include-code::./SecurityConfigAfter[tag=snippet,indent=0]
<1> Use `HttpSecurity#addFilterAfter` to add the `TenantFilter` after the `AnonymousAuthenticationFilter`.