parent
11f6e0477c
commit
c1f94156f9
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue