I am writing Java web application using Spring MVC framework, I hava already done authorization through Windows AD with Spring Security framework. But now, I have to get client's Windows account username, how to do that? I am trying to use WAFFLE but didn't find exactly I am searching for.
Asked
Active
Viewed 1,883 times
1 Answers
0
Either
request.getRemoteUser()
(returns String of username) or
request.getUserPrincipal()
(returns Principal object that contains username) should provide you with the username.

Alex Coleman
- 7,216
- 1
- 22
- 31