8000 Ignore auth attempts that are not "Basic" · nibin/elasticsearch-http-basic@b1c7f69 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1c7f69

Browse files
committed
Ignore auth attempts that are not "Basic"
1 parent 7da82d7 commit b1c7f69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/asquera/elasticsearch/plugins/http/HttpBasicServer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ private boolean authBasic(final HttpRequest request){
4646
}
4747

4848
String[] split = authHeader.split(" ");
49+
50+
if (!split[0].equals("Basic")){
51+
return false;
52+
}
53+
4954
String decoded = null;
5055

5156
try {

0 commit comments

Comments
 (0)
0