Fixing basic authenticator issue

revert-70aa11f8
megala21 8 years ago
parent 4560348697
commit 47ce861b49

@ -39,6 +39,11 @@
<param-name>doAuthentication</param-name> <param-name>doAuthentication</param-name>
<param-value>true</param-value> <param-value>true</param-value>
</context-param> </context-param>
<!--This is to support basic auth.-->
<context-param>
<param-name>basicAuth</param-name>
<param-value>true</param-value>
</context-param>
<!--publish to apim--> <!--publish to apim-->
<context-param> <context-param>

@ -161,7 +161,7 @@ public class BasicAuthAuthenticator implements WebappAuthenticator {
private boolean isAuthenticationSupported(Request request) { private boolean isAuthenticationSupported(Request request) {
String param = request.getContext().findParameter("basicAuth"); String param = request.getContext().findParameter("basicAuth");
return (param == null || !Boolean.parseBoolean(param)); return (param != null && Boolean.parseBoolean(param));
} }
} }

Loading…
Cancel
Save