Revert "Publish CsrfTokenRepository as shared object"

This reverts commit d19ff12813f0e5086eadc60386fcfdc6a655826b.
This commit is contained in:
Josh Cummings 2021-04-12 14:43:37 -06:00
parent 4e81bbe386
commit 404a6c5674
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443

View File

@ -201,7 +201,6 @@ public final class CsrfConfigurer<H extends HttpSecurityBuilder<H>>
@SuppressWarnings("unchecked")
@Override
public void configure(H http) {
http.setSharedObject(CsrfTokenRepository.class, this.csrfTokenRepository);
CsrfFilter filter = new CsrfFilter(this.csrfTokenRepository);
RequestMatcher requireCsrfProtectionMatcher = getRequireCsrfProtectionMatcher();
if (requireCsrfProtectionMatcher != null) {