mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-03-25 11:31:05 +00:00
Merge branch '7.0.x'
This commit is contained in:
commit
2c2666065f
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user