且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何自动登录到使用系统凭据的网站?

更新时间:2023-12-04 17:31:46

您在找什么叫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/