简体   繁体   中英

Get Windows Authentication Token Using Javascript to have Integrated Security (NOT using IIS)

I want to authenticate users on a web application. The users are already logged into their Windows Network. Notice, this is NOT Internet Information Server. I have a Java Application Server on the other side. Is there a way using Javascript or something, so that a Windows Authentication can be taken, then sent to the server, and on the server, that token being validated (assuming the server is on the same network). I have found that you can convert a token into a Windows Principal So I need the Client part. A way to send that token to the server.

Any ideas?

If you setup your Java web application to support NTLM authentication, eg by using the HttpServletFilter from the Samba Java library, this should work without implementing any client side JavaScript.

Depending on which browser the client is using, you may however have to configure the browser to enable NTLM authentication against you server. If I'm not wrong, IE is by default configured to allow transparent NTLM authentication against servers on the local network, but in Firefox, you have to enable NTLM for each specific server address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM