Merge branch '7.0.x'

This commit is contained in:
Josh Cummings 2026-03-24 13:39:37 -06:00
commit 2c2666065f
No known key found for this signature in database
GPG Key ID: 869B37A20E876129

View File

@ -50,7 +50,7 @@ public final class ServerOneTimeTokenAuthenticationConverter implements ServerAu
Assert.notNull(exchange, "exchange cannot be null");
if (isFormEncodedRequest(exchange.getRequest())) {
return exchange.getFormData()
.mapNotNull((data) -> data.getFirst(TOKEN))
.flatMap((data) -> Mono.justOrEmpty(data.getFirst(TOKEN)))
.map((data) -> OneTimeTokenAuthenticationToken.unauthenticated(data));
}
String token = resolveTokenFromRequest(exchange.getRequest());