0

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.

Madi Sagimbekov
  • 319
  • 5
  • 15

1 Answers1

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