Hi, So i have integrated waffle in my tomcat 7, in the JSP file sample I get the delegated user via request.GetRemoteUser() when request is HttpServletRequest.
The client (from another machine) with a different username then the user that runs the tomcat invoke http get to index.jsp and i see the user is as expected (its the client user and not the server user)
But, When using server-side code, how can i get that username ?
I tried this
But the class WindowsSecurityContextImpl has no .initialize() method that takes not parameters.. I tried earlier versions of waffle, maybe the function was deprecated. nothing helped
This is not a good solution since its not working - i dont know how it ever worked - if it does not compile.
How can i get the delegated user (impersonated/remote user ?) in a plain java code.
in C# it would be Thread.CurrentPrincipal.Identity