Skip to content

Commit

Permalink
Allow basic authentication with only user or password.
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo17 committed Feb 16, 2025
1 parent 77818ff commit eeaae7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public boolean isTrusted(X509Certificate[] chain, String authType) throws Certif
}
break;
case AppService.AUTHTYPE_BASICAUTH:
if (!StringUtil.isEmptyOrNull(authPassword) && !StringUtil.isEmptyOrNull(authUser)) {
if (!StringUtil.isEmptyOrNull(authPassword) || !StringUtil.isEmptyOrNull(authUser)) {
String authHeader = authUser + ":" + authPassword;
headerList.add(factoryAppServiceHeader.create(null, "authorization", "Basic " + Base64.getEncoder().encodeToString(authHeader.getBytes()), true, 0, "", "", null, "", null));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*Improvements / New features*
[square]
* Campaign execution can now be cancelled, paused and resumed #2211
* Allow basic authentication with only user or password.

*Warning to be considered before applying the version (deprecated features)*
[square]
Expand Down

0 comments on commit eeaae7e

Please sign in to comment.