如何自动登录到使用系统凭据的网站? [英] How to automatically login to the site using system credentials?

查看:219
本文介绍了如何自动登录到使用系统凭据的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发内网用户的Web应用程序。我不希望他们进入的登录凭据每次访问该网站的时间。它应该从系统的用户名和密码被自动加载。即如果他们有一个有效的系统用户名和密码,他们应该能够登录到应用程序。我使用Java。如何满足这一要求?

I need to develop a web application for the Intranet users. I dont want them to enter the login credentials each time they visit the site. It should be automatically loaded from the System Username and Password. i.e If they have a valid system username and password they should be able to login to the application. I am using Java. How to fulfill this requirement?

推荐答案

您在找什么叫Windows集成身份验证。为了能够实现它,你的服务器需要支持(使用Kerberos),并进行配置,以从浏览器未经授权的请求与WWW验证回应对Active Directory身份验证:NTLM或协商头

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

我不能告诉你究竟是如何做到这一点,不知道你所使用的服务器平台。不过,假设你的平台支持JAAS,这里有一个博客帖子,让上配置它的一些基础知识 - 的 http://webmoli.com/2009/08/29/single-sign-on-in-java-platform/

I can't tell you exactly how to do this, without knowing what server platform you're using. But assuming your platform supports JAAS, here's a blog post that gives some basics on configuring it - http://webmoli.com/2009/08/29/single-sign-on-in-java-platform/

这篇关于如何自动登录到使用系统凭据的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆