- protected void askForWwwAuth(HttpServletRequest request, HttpServletResponse response) {
- super.askForWwwAuth(request, response);
- response.setHeader("X-OpenRosa-Version", "1.0");
- response.setDateHeader("Date", System.currentTimeMillis());
+ protected boolean authIsRequired(RemoteAuthRequest remoteAuthRequest, RemoteAuthResponse remoteAuthResponse) {
+ remoteAuthResponse.setHeader("X-OpenRosa-Version", "1.0");
+ remoteAuthResponse.setHeader("Date", Long.toString(System.currentTimeMillis()));
+ return true;