mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
Revert "Create the CSRF token on the bounded elactic scheduler"
This reverts commit 5bce912446eec508bb2c2fca1fb139b34809c86e.
This commit is contained in:
parent
41e6347523
commit
486722e5c0
@ -27,7 +27,6 @@ import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.server.ServerWebExchange;
|
||||
|
||||
import reactor.core.publisher.Mono;
|
||||
import reactor.core.scheduler.Schedulers;
|
||||
|
||||
/**
|
||||
* A {@link ServerCsrfTokenRepository} that persists the CSRF token in a cookie named "XSRF-TOKEN" and
|
||||
@ -64,7 +63,7 @@ public final class CookieServerCsrfTokenRepository implements ServerCsrfTokenRep
|
||||
|
||||
@Override
|
||||
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
|
||||
return Mono.fromCallable(this::createCsrfToken).subscribeOn(Schedulers.boundedElastic());
|
||||
return Mono.fromCallable(this::createCsrfToken);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user