As the question say, can I get Windows Username in a GWT-RPC application?
Edit : NOTE: System.getProperty("user.name");
throws error in GWT-RPC
The method getProperty(String) is undefined for the type System
As the question say, can I get Windows Username in a GWT-RPC application?
Edit : NOTE: System.getProperty("user.name");
throws error in GWT-RPC
The method getProperty(String) is undefined for the type System
Use System.getProperty("user.name");
that will return the username.
EDIT : What I found is Apache waffle. WAFFLE - Windows Authentication Functional Framework (Light Edition) is a native C# and Java library that does everything Windows authentication (Negotiate, NTLM and Kerberos).
This is one of the example which matches your requirement.
You can get windows user name by
String userName = System.getProperty("user.name");
Then you can wrap it in your GWT-RPC app.