mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-03-25 19:41:05 +00:00
Adjust for Nullability
Issue gh-18973 Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
This commit is contained in:
parent
a7c3e842d6
commit
bae4cdd765
@ -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