Skip to content

Commit f58a262

Browse files
committed
Revert "Create the CSRF token on the bounded elactic scheduler"
Reactor did not add bounded elastic until a later version. This reverts commit c0154f2.
1 parent c0154f2 commit f58a262

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web/src/main/java/org/springframework/security/web/server/csrf/WebSessionServerCsrfTokenRepository.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.springframework.util.Assert;
1919
import org.springframework.web.server.ServerWebExchange;
2020
import reactor.core.publisher.Mono;
21-
import reactor.core.scheduler.Schedulers;
2221

2322
import javax.servlet.http.HttpServletRequest;
2423
import javax.servlet.http.HttpSession;
@@ -49,9 +48,7 @@ public class WebSessionServerCsrfTokenRepository
4948

5049
@Override
5150
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
52-
return Mono.just(exchange)
53-
.publishOn(Schedulers.boundedElastic())
54-
.fromCallable(() -> createCsrfToken());
51+
return Mono.fromCallable(() -> createCsrfToken());
5552
}
5653

5754
@Override

0 commit comments

Comments
 (0)