ServerHttpBasicAuthenticationConverter Validates Scheme Name
Fixes: gh-5414
This commit is contained in:
@@ -41,7 +41,7 @@ public class ServerHttpBasicAuthenticationConverter implements Function<ServerWe
|
||||
ServerHttpRequest request = exchange.getRequest();
|
||||
|
||||
String authorization = request.getHeaders().getFirst(HttpHeaders.AUTHORIZATION);
|
||||
if(authorization == null) {
|
||||
if(authorization == null || !authorization.toLowerCase().startsWith("basic ")) {
|
||||
return Mono.empty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user