Browse Source

Revert "Publish CsrfTokenRepository as shared object"

This reverts commit d19ff12813f0e5086eadc60386fcfdc6a655826b.
Josh Cummings 4 years ago
parent
commit
404a6c5674

+ 0 - 1
config/src/main/java/org/springframework/security/config/annotation/web/configurers/CsrfConfigurer.java

@@ -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) {