Skip to content

Commit 0f26f4d

Browse files
committed
Fix GenerateOneTimeTokenWebFilter double publish of chain.filter(...)
closes gh-16458 Signed-off-by: Daniel Garnier-Moiroux <[email protected]>
1 parent 42a49bb commit 0f26f4d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

web/src/main/java/org/springframework/security/web/server/authentication/ott/GenerateOneTimeTokenWebFilter.java

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
5858
// @formatter:off
5959
return this.matcher.matches(exchange)
6060
.filter(ServerWebExchangeMatcher.MatchResult::isMatch)
61-
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
6261
.then(exchange.getFormData())
6362
.mapNotNull((data) -> data.getFirst(USERNAME))
6463
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))

0 commit comments

Comments
 (0)