Skip to content

Commit 486722e

Browse files
committed
Revert "Create the CSRF token on the bounded elactic scheduler"
This reverts commit 5bce912.
1 parent 41e6347 commit 486722e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.springframework.web.server.ServerWebExchange;
2828

2929
import reactor.core.publisher.Mono;
30-
import reactor.core.scheduler.Schedulers;
3130

3231
/**
3332
* A {@link ServerCsrfTokenRepository} that persists the CSRF token in a cookie named "XSRF-TOKEN" and
@@ -64,7 +63,7 @@ public static CookieServerCsrfTokenRepository withHttpOnlyFalse() {
6463

6564
@Override
6665
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
67-
return Mono.fromCallable(this::createCsrfToken).subscribeOn(Schedulers.boundedElastic());
66+
return Mono.fromCallable(this::createCsrfToken);
6867
}
6968

7069
@Override

0 commit comments

Comments
 (0)