serverWebExchange->exchange

Issue: gh-4822
This commit is contained in:
Rob Winch 2017-11-14 16:22:20 -06:00
parent 11f6e0477c
commit c1f94156f9
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ public class ServerFormLoginAuthenticationConverter implements Function<ServerWe
private String passwordParameter = "password";
@Override
public Mono<Authentication> apply(ServerWebExchange serverWebExchange) {
return serverWebExchange.getFormData()
public Mono<Authentication> apply(ServerWebExchange exchange) {
return exchange.getFormData()
.map( data -> createAuthentication(data));
}

View File

@ -36,8 +36,8 @@ public class ServerHttpBasicAuthenticationConverter implements Function<ServerWe
public static final String BASIC = "Basic ";
@Override
public Mono<Authentication> apply(ServerWebExchange webExchange) {
ServerHttpRequest request = webExchange.getRequest();
public Mono<Authentication> apply(ServerWebExchange exchange) {
ServerHttpRequest request = exchange.getRequest();
String authorization = request.getHeaders().getFirst(HttpHeaders.AUTHORIZATION);
if(authorization == null) {