Hayzeus
Hayzeus

Reputation: 63

Get Windows user name in Spring MVC

I have a Spring-MVC web-app running on Tomcat 7 on a Solaris box. The web-app is entirely inhouse, on an intranet. All users who hit the app are running Windows. Is it possible to obtain their Windows user name when they hit the controller? I had this working perfectly with Waffle, but that solution doesn't work on Solaris.

Upvotes: 2

Views: 1418

Answers (1)

adamoldak
adamoldak

Reputation: 644

Take a look at the JCFIS library. It supports NTLM protocol which can pass the credentials from the OS to your webapp. Unfortunately, it works only in IE.

Upvotes: 2

Related Questions