How to automatically log in using system credentials?

I need to develop a web application for Intranet users. I do not want them to enter credentials every time they visit the site. It should automatically boot from the system username and password. If they have a valid system username and password, they should be able to log into the application. I am using Java. How to fulfill this requirement?

+3
source share
7 answers

What you are looking for is called Windows Integrated Authentication. To be able to implement it, your server needs to support authentication in Active Directory (using Kerberos) and be configured to respond to unauthorized requests from a browser with the WWW-Authenticate: NTLM or Negotiate header.

I can’t say exactly how to do this without knowing which server platform you are using. But assuming your platform supports JAAS, a blog post is posted here that gives some basics for setting it up - http://webmoli.com/2009/08/29/single-sign-on-in-java-platform/

+3
source

waffle Waffle .
. webapp intranet. COM4J COM4J

+5

COM4J . , Windows. waffle api UI. COM4J api , java-.

+5

SSO ( ) . Waffle SSO . . Waffle . Com4j .

+4

NTLM , SPNEGO (Kerberos) NTLM ( Windows). , . Microsoft IIS - , , .

, - Java WNA . WebLogic Server, , , , - Microsoft IIS .

, Single Sign On Microsoft Active Directory, .

In addition, the browser used also matters. WNA is available with IE 5 and in some versions of Firefox. It has been available on Google Chrome since version 5 . NTLM authentication was originally introduced in Opera 9 as well.

+1
source

use simple ftpclient (apache provides) to copy files. It will give better performance.

0
source

Source: https://habr.com/ru/post/1772794/


All Articles