I am trying to get Windows authentication to work with a third-party application developed in conjunction with GWT. I host an application with tomcat on a windows server. I access the site through an IIS proxy (installed after the tomcat documentation).
If I modify .jsp webapp to display "<% = request.getRemoteUser ()%>", I get the username that I am jumping into, my Windows account.
But webapp authenticates me with the account on which I installed the Windows Tomcat service on the server.
In the (decompiled) webapp source code, I see a call to exactly the same "request.getRemoteUser ()", so I wonder where the difference might be.
Here are the decompiled classes:
import javax.servlet.http.HttpServletRequest; public class RemoteUserLoginProvider extends BaseRequestLoginProvider { public String extractLoginFromRequest(HttpServletRequest request) { return request.getRemoteUser(); } }
AND:
import com.google.inject.Inject; import com.google.inject.Provider; import javax.servlet.http.HttpServletRequest; public abstract class BaseRequestLoginProvider implements Provider<String> { @Inject private Provider<HttpServletRequest> requestProvider; public abstract String extractLoginFromRequest(HttpServletRequest paramHttpServletRequest); public String get() { HttpServletRequest request = (HttpServletRequest)this.requestProvider.get(); String userlogin = extractLoginFromRequest(request); return userlogin; } }
Could my problem be related to this error in google guice: https://github.com/google/guice/issues/780 ?
If so, is there any work?
java tomcat iis gwt windows-authentication
Laloutre
source share