@ -39,6 +39,11 @@
<param-name>doAuthentication</param-name>
<param-value>true</param-value>
</context-param>
<!--This is to support basic auth.-->
<context-param>
<param-name>basicAuth</param-name>
<!--publish to apim-->
@ -161,7 +161,7 @@ public class BasicAuthAuthenticator implements WebappAuthenticator {
private boolean isAuthenticationSupported(Request request) {
String param = request.getContext().findParameter("basicAuth");
return (param == null || !Boolean.parseBoolean(param));
return (param != null && Boolean.parseBoolean(param));
}